Klasse ShortSets.UnmodifiableSet

java.lang.Object
speiger.src.collections.shorts.utils.ShortCollections.UnmodifiableCollection
speiger.src.collections.shorts.utils.ShortSets.UnmodifiableSet
Alle implementierten Schnittstellen:
Iterable<Short>, Collection<Short>, Set<Short>, ShortCollection, ShortIterable, ShortSet, ISizeProvider
Umschließende Klasse:
ShortSets

public static class ShortSets.UnmodifiableSet extends ShortCollections.UnmodifiableCollection implements ShortSet
Unmodifyable Set wrapper that helps is used with unmodifyableSet function
  • Methodendetails

    • copy

      public ShortSet copy()
      Beschreibung aus Schnittstelle kopiert: ShortCollection
      A Function that does a shallow clone of the Collection itself. This function is more optimized then a copy constructor since the Collection does not have to be unsorted/resorted. It can be compared to Cloneable but with less exception risk
      Angegeben von:
      copy in Schnittstelle ShortCollection
      Angegeben von:
      copy in Schnittstelle ShortSet
      Setzt außer Kraft:
      copy in Klasse ShortCollections.UnmodifiableCollection
      Gibt zurück:
      a Shallow Copy of the collection
    • remove

      public boolean remove(short o)
      Beschreibung aus Schnittstelle kopiert: ShortSet
      A Type Specific remove function to reduce boxing/unboxing
      Angegeben von:
      remove in Schnittstelle ShortSet
      Parameter:
      o - the element that should be removed
      Gibt zurück:
      true if the element was removed