Modul speiger.src.collections
Klasse DoubleCollections
java.lang.Object
speiger.src.collections.doubles.utils.DoubleCollections
A Helper class for Collections
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic classEmpty Collection implementation for the empty collection functionstatic classSynchronized Collection Wrapper for the synchronizedCollection functionstatic classUnmodifyable Collection Wrapper for the unmodifyableCollection method -
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic DoubleCollectionempty()Returns a Immutable EmptyCollection instance that is automatically casted.static DoubleCollectionsingleton(double element) Creates a Singleton Collection of a given elementstatic DoubleCollectionReturns a synchronized Collection instance based on the instance given.static DoubleCollectionsynchronize(DoubleCollection c, Object mutex) Returns a synchronized Collection instance based on the instance given.static DoubleCollectionReturns a Immutable Collection instance based on the instance given.
-
Felddetails
-
EMPTY
Empty Collection Reference
-
-
Konstruktordetails
-
DoubleCollections
public DoubleCollections()
-
-
Methodendetails
-
empty
Returns a Immutable EmptyCollection instance that is automatically casted.- Gibt zurück:
- an empty collection
-
unmodifiable
Returns a Immutable Collection instance based on the instance given.- Parameter:
c- that should be made immutable/unmodifiable- Gibt zurück:
- a unmodifiable collection wrapper. If the Collection already a unmodifiable wrapper then it just returns itself.
-
synchronize
Returns a synchronized Collection instance based on the instance given.- Parameter:
c- that should be synchronized- Gibt zurück:
- a synchronized collection wrapper. If the Collection already a synchronized wrapper then it just returns itself.
-
synchronize
Returns a synchronized Collection instance based on the instance given.- Parameter:
c- that should be synchronizedmutex- is the controller of the synchronization block.- Gibt zurück:
- a synchronized collection wrapper. If the Collection already a synchronized wrapper then it just returns itself.
-
singleton
Creates a Singleton Collection of a given element- Parameter:
element- the element that should be converted into a singleton collection- Gibt zurück:
- a singletoncollection of the given element
-