Class ImmutableOrdinalSet.SingletonImmutableOrdinalSet<E extends OrdinalValue<E>>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private E element  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean contains​(java.lang.Object object)  
      boolean containsAll​(java.util.Collection<?> collection)  
      boolean containsAny​(java.util.Collection<?> collection)  
      protected java.util.Set<E> delegate()  
      void incrementCounters​(int[] counters)
      Coarse grained method to effectively collect containment information without re-packing internal structures to temporary collections.
      boolean isEmpty()  
      int size()  
      • Methods inherited from class com.google.common.collect.ForwardingSet

        equals, hashCode, standardEquals, standardHashCode, standardRemoveAll
      • Methods inherited from class com.google.common.collect.ForwardingCollection

        iterator, standardAddAll, standardClear, standardContains, standardContainsAll, standardIsEmpty, standardRemove, standardRetainAll, standardToArray, standardToArray, standardToString, toArray, toArray
      • Methods inherited from class com.google.common.collect.ForwardingObject

        toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.Set

        iterator, spliterator, toArray, toArray
    • Constructor Detail

      • SingletonImmutableOrdinalSet

        SingletonImmutableOrdinalSet​(E element)
    • Method Detail

      • contains

        public boolean contains​(java.lang.Object object)
        Specified by:
        contains in interface java.util.Collection<E extends OrdinalValue<E>>
        Specified by:
        contains in interface java.util.Set<E extends OrdinalValue<E>>
        Overrides:
        contains in class com.google.common.collect.ForwardingCollection<E extends OrdinalValue<E>>
      • containsAll

        public boolean containsAll​(java.util.Collection<?> collection)
        Specified by:
        containsAll in interface java.util.Collection<E extends OrdinalValue<E>>
        Specified by:
        containsAll in interface java.util.Set<E extends OrdinalValue<E>>
        Overrides:
        containsAll in class com.google.common.collect.ForwardingCollection<E extends OrdinalValue<E>>
      • delegate

        protected java.util.Set<E> delegate()
        Specified by:
        delegate in class com.google.common.collect.ForwardingSet<E extends OrdinalValue<E>>
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<E extends OrdinalValue<E>>
        Specified by:
        size in interface java.util.Set<E extends OrdinalValue<E>>
        Overrides:
        size in class com.google.common.collect.ForwardingCollection<E extends OrdinalValue<E>>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Collection<E extends OrdinalValue<E>>
        Specified by:
        isEmpty in interface java.util.Set<E extends OrdinalValue<E>>
        Overrides:
        isEmpty in class com.google.common.collect.ForwardingCollection<E extends OrdinalValue<E>>
      • incrementCounters

        public void incrementCounters​(int[] counters)
        Description copied from class: ImmutableOrdinalSet
        Coarse grained method to effectively collect containment information without re-packing internal structures to temporary collections.

        For any contained element, corresponding value in array by ordinal index will be incremented.

        Specified by:
        incrementCounters in class ImmutableOrdinalSet<E extends OrdinalValue<E>>
        Parameters:
        counters - array of counters where indexes corresponds to ordinal values