Class FSet.Empty<E>

  • Type Parameters:
    E - the element type (used in type inference)
    All Implemented Interfaces:
    Serializable, Iterable<E>
    Enclosing class:
    FSet<E>

    public static final class FSet.Empty<E>
    extends FSet<E>
    Class for the empty set.
    See Also:
    Serialized Form
    • Constructor Detail

      • Empty

        private Empty()
        Constructor.
    • Method Detail

      • isEmpty

        public boolean isEmpty()
        Returns true as this represents the empty set.
        Specified by:
        isEmpty in class FSet<E>
        Returns:
        true
      • size

        public int size()
        Returns 0 as size of the empty set.
        Specified by:
        size in class FSet<E>
        Returns:
        0