java.lang.Object
speiger.src.collections.shorts.utils.ShortSets

public class ShortSets extends Object
A Helper class for sets
  • Konstruktordetails

    • ShortSets

      public ShortSets()
  • Methodendetails

    • empty

      public static ShortSet empty()
      EmptySet getter
      Gibt zurück:
      a EmptySet
    • synchronize

      public static ShortSet synchronize(ShortSet s)
      Creates a Synchronized set while preserving the ITrimmable interface
      Parameter:
      s - the set that should be synchronized
      Gibt zurück:
      a set that is synchronized
      Note:
      if the set is already synchronized then it will just self return it
    • synchronize

      public static ShortSet synchronize(ShortSet s, Object mutex)
      Creates a Synchronized set while preserving the ITrimmable interface
      Parameter:
      s - the set that should be synchronized
      mutex - controller for access
      Gibt zurück:
      a set that is synchronized
      Note:
      if the set is already synchronized then it will just self return it
    • synchronize

      public static ShortSortedSet synchronize(ShortSortedSet s)
      Creates a Synchronized SortedSet while preserving the ITrimmable interface
      Parameter:
      s - the set that should be synchronized
      Gibt zurück:
      a SortedSet that is synchronized
      Note:
      if the set is already synchronized then it will just self return it
    • synchronize

      public static ShortSortedSet synchronize(ShortSortedSet s, Object mutex)
      Creates a Synchronized SortedSet while preserving the ITrimmable interface
      Parameter:
      s - the set that should be synchronized
      mutex - controller for access
      Gibt zurück:
      a SortedSet that is synchronized
      Note:
      if the set is already synchronized then it will just self return it
    • synchronize

      public static ShortOrderedSet synchronize(ShortOrderedSet s)
      Creates a Synchronized OrderedSet while preserving the ITrimmable interface
      Parameter:
      s - the set that should be synchronized
      Gibt zurück:
      a OrderedSet that is synchronized
      Note:
      if the set is already synchronized then it will just self return it
    • synchronize

      public static ShortOrderedSet synchronize(ShortOrderedSet s, Object mutex)
      Creates a Synchronized OrderedSet while preserving the ITrimmable interface
      Parameter:
      s - the set that should be synchronized
      mutex - controller for access
      Gibt zurück:
      a OrderedSet that is synchronized
      Note:
      if the set is already synchronized then it will just self return it
    • synchronize

      public static ShortNavigableSet synchronize(ShortNavigableSet s)
      Creates a Synchronized NavigableSet while preserving the ITrimmable interface
      Parameter:
      s - the set that should be synchronized
      Gibt zurück:
      a NavigableSet that is synchronized
      Note:
      if the set is already synchronized then it will just self return it
    • synchronize

      public static ShortNavigableSet synchronize(ShortNavigableSet s, Object mutex)
      Creates a Synchronized NavigableSet while preserving the ITrimmable interface
      Parameter:
      s - the set that should be synchronized
      mutex - controller for access
      Gibt zurück:
      a NavigableSet that is synchronized
      Note:
      if the set is already synchronized then it will just self return it
    • unmodifiable

      public static ShortSet unmodifiable(ShortSet s)
      Creates Unmodifyable Set wrapper
      Parameter:
      s - set that should be made unmodifiable
      Gibt zurück:
      a UnmodifyableSet, if the set is already unmodifiable then it returns itself
    • unmodifiable

      public static ShortSortedSet unmodifiable(ShortSortedSet s)
      Creates Unmodifyable SortedSet wrapper
      Parameter:
      s - sortedSet that should be made unmodifiable
      Gibt zurück:
      a UnmodifyableSortedSet, if the set is already unmodifiable then it returns itself
    • unmodifiable

      public static ShortOrderedSet unmodifiable(ShortOrderedSet s)
      Creates Unmodifyable OrderedSet wrapper
      Parameter:
      s - OrderedSet that should be made unmodifiable
      Gibt zurück:
      a UnmodifyableOrderedSet, if the set is already unmodifiable then it returns itself
    • unmodifiable

      public static ShortNavigableSet unmodifiable(ShortNavigableSet s)
      Creates Unmodifyable NavigableSet wrapper
      Parameter:
      s - navigableSet that should be made unmodifiable
      Gibt zurück:
      a UnmodifyableNavigableSet, if the set is already unmodifiable then it returns itself
    • singleton

      public static ShortSet singleton(short element)
      Creates a Singleton set of a given element
      Parameter:
      element - the element that should be converted into a singleton set
      Gibt zurück:
      a singletonset of the given element