java.lang.Object
speiger.src.collections.ints.utils.IntSets

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

    • IntSets

      public IntSets()
  • Methodendetails

    • empty

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

      public static IntSet synchronize(IntSet 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 IntSet synchronize(IntSet 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 IntSortedSet synchronize(IntSortedSet 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 IntSortedSet synchronize(IntSortedSet 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 IntOrderedSet synchronize(IntOrderedSet 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 IntOrderedSet synchronize(IntOrderedSet 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 IntNavigableSet synchronize(IntNavigableSet 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 IntNavigableSet synchronize(IntNavigableSet 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 IntSet unmodifiable(IntSet 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 IntSortedSet unmodifiable(IntSortedSet 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 IntOrderedSet unmodifiable(IntOrderedSet 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 IntNavigableSet unmodifiable(IntNavigableSet 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 IntSet singleton(int 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