java.lang.Object
speiger.src.collections.longs.utils.LongSets

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

    • LongSets

      public LongSets()
  • Methodendetails

    • empty

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

      public static LongSet synchronize(LongSet 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 LongSet synchronize(LongSet 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 LongSortedSet synchronize(LongSortedSet 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 LongSortedSet synchronize(LongSortedSet 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 LongOrderedSet synchronize(LongOrderedSet 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 LongOrderedSet synchronize(LongOrderedSet 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 LongNavigableSet synchronize(LongNavigableSet 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 LongNavigableSet synchronize(LongNavigableSet 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 LongSet unmodifiable(LongSet 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 LongSortedSet unmodifiable(LongSortedSet 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 LongOrderedSet unmodifiable(LongOrderedSet 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 LongNavigableSet unmodifiable(LongNavigableSet 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 LongSet singleton(long 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