java.lang.Object
speiger.src.collections.floats.utils.FloatSets

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

    • FloatSets

      public FloatSets()
  • Methodendetails

    • empty

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

      public static FloatSet synchronize(FloatSet 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 FloatSet synchronize(FloatSet 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 FloatSortedSet synchronize(FloatSortedSet 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 FloatSortedSet synchronize(FloatSortedSet 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 FloatOrderedSet synchronize(FloatOrderedSet 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 FloatOrderedSet synchronize(FloatOrderedSet 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 FloatNavigableSet synchronize(FloatNavigableSet 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 FloatNavigableSet synchronize(FloatNavigableSet 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 FloatSet unmodifiable(FloatSet 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 FloatSortedSet unmodifiable(FloatSortedSet 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 FloatOrderedSet unmodifiable(FloatOrderedSet 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 FloatNavigableSet unmodifiable(FloatNavigableSet 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 FloatSet singleton(float 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