Class WritableSet<E>

    • Constructor Detail

      • WritableSet

        public WritableSet()
        Constructs a new empty instance in the default realm with a null element type.
      • WritableSet

        public WritableSet​(Collection<? extends E> c,
                           Object elementType)
        Constructs a new instance in the default realm containing the elements of the given collection. Changes to the given collection after calling this method do not affect the contents of the created WritableSet.
        Parameters:
        c - elements to initialize this set with
        elementType - can be null
      • WritableSet

        public WritableSet​(Realm realm)
        Constructs a new empty instance in the given realm and a null element type.
        Parameters:
        realm - the realm
      • WritableSet

        public WritableSet​(Realm realm,
                           Collection<? extends E> c,
                           Object elementType)
        Constructs a new instance in the default realm with the given element type, containing the elements of the given collection. Changes to the given collection after calling this method do not affect the contents of the created WritableSet.
        Parameters:
        realm - the realm
        c - elements to initialize this set with
        elementType - can be null