|
PCJ API Version 1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbak.pcj.Adapter
This class provides static methods for creating adapters betweeen primitive collections and Java Collection Framework collections. Adapters are generally implemented as wrappers around an underlying collection. Thus, changes to the underlying collection are reflected by the adapting collection and vice versa.
In order for adaptions from JCF to PCJ to work correctly, a number of rules should be followed:
ClassCastException will likely be
thrown by some or all of the adaption's methods.
NullPointerException will likely be
thrown by some or all of the adaption's methods.
| Method Summary | |
static BooleanKeyBooleanMap |
asBooleanKeyBooleans(Map map)
Returns an adaption of a map to a primitive map from boolean keys to boolean values. |
static BooleanKeyByteMap |
asBooleanKeyBytes(Map map)
Returns an adaption of a map to a primitive map from boolean keys to byte values. |
static BooleanKeyCharMap |
asBooleanKeyChars(Map map)
Returns an adaption of a map to a primitive map from boolean keys to char values. |
static BooleanKeyDoubleMap |
asBooleanKeyDoubles(Map map)
Returns an adaption of a map to a primitive map from boolean keys to double values. |
static BooleanKeyFloatMap |
asBooleanKeyFloats(Map map)
Returns an adaption of a map to a primitive map from boolean keys to float values. |
static BooleanKeyIntMap |
asBooleanKeyInts(Map map)
Returns an adaption of a map to a primitive map from boolean keys to int values. |
static BooleanKeyLongMap |
asBooleanKeyLongs(Map map)
Returns an adaption of a map to a primitive map from boolean keys to long values. |
static BooleanKeyMap |
asBooleanKeys(Map map)
Returns an adaption of a map to a primitive map from boolean keys to objects. |
static BooleanKeyShortMap |
asBooleanKeyShorts(Map map)
Returns an adaption of a map to a primitive map from boolean keys to short values. |
static BooleanCollection |
asBooleans(Collection collection)
Returns an adaption of a collection to a collection of primitive boolean values. |
static BooleanIterator |
asBooleans(Iterator iterator)
Returns an adaption of an iterator to an iterator over primitive boolean values. |
static BooleanList |
asBooleans(List list)
Returns an adaption of a list to a list of primitive boolean values. |
static BooleanListIterator |
asBooleans(ListIterator iterator)
Returns an adaption of a list iterator to a list iterator over primitive boolean values. |
static BooleanSet |
asBooleans(Set set)
Returns an adaption of a set to a set of primitive boolean values. |
static BooleanSortedSet |
asBooleans(SortedSet set)
Returns an adaption of a sorted set to a sorted set of primitive boolean values. |
static ByteKeyBooleanMap |
asByteKeyBooleans(Map map)
Returns an adaption of a map to a primitive map from byte keys to boolean values. |
static ByteKeyByteMap |
asByteKeyBytes(Map map)
Returns an adaption of a map to a primitive map from byte keys to byte values. |
static ByteKeyCharMap |
asByteKeyChars(Map map)
Returns an adaption of a map to a primitive map from byte keys to char values. |
static ByteKeyDoubleMap |
asByteKeyDoubles(Map map)
Returns an adaption of a map to a primitive map from byte keys to double values. |
static ByteKeyFloatMap |
asByteKeyFloats(Map map)
Returns an adaption of a map to a primitive map from byte keys to float values. |
static ByteKeyIntMap |
asByteKeyInts(Map map)
Returns an adaption of a map to a primitive map from byte keys to int values. |
static ByteKeyLongMap |
asByteKeyLongs(Map map)
Returns an adaption of a map to a primitive map from byte keys to long values. |
static ByteKeyMap |
asByteKeys(Map map)
Returns an adaption of a map to a primitive map from byte keys to objects. |
static ByteKeyShortMap |
asByteKeyShorts(Map map)
Returns an adaption of a map to a primitive map from byte keys to short values. |
static ByteCollection |
asBytes(Collection collection)
Returns an adaption of a collection to a collection of primitive byte values. |
static ByteIterator |
asBytes(Iterator iterator)
Returns an adaption of an iterator to an iterator over primitive byte values. |
static ByteList |
asBytes(List list)
Returns an adaption of a list to a list of primitive byte values. |
static ByteListIterator |
asBytes(ListIterator iterator)
Returns an adaption of a list iterator to a list iterator over primitive byte values. |
static ByteSet |
asBytes(Set set)
Returns an adaption of a set to a set of primitive byte values. |
static ByteSortedSet |
asBytes(SortedSet set)
Returns an adaption of a sorted set to a sorted set of primitive byte values. |
static CharKeyBooleanMap |
asCharKeyBooleans(Map map)
Returns an adaption of a map to a primitive map from char keys to boolean values. |
static CharKeyByteMap |
asCharKeyBytes(Map map)
Returns an adaption of a map to a primitive map from char keys to byte values. |
static CharKeyCharMap |
asCharKeyChars(Map map)
Returns an adaption of a map to a primitive map from char keys to char values. |
static CharKeyDoubleMap |
asCharKeyDoubles(Map map)
Returns an adaption of a map to a primitive map from char keys to double values. |
static CharKeyFloatMap |
asCharKeyFloats(Map map)
Returns an adaption of a map to a primitive map from char keys to float values. |
static CharKeyIntMap |
asCharKeyInts(Map map)
Returns an adaption of a map to a primitive map from char keys to int values. |
static CharKeyLongMap |
asCharKeyLongs(Map map)
Returns an adaption of a map to a primitive map from char keys to long values. |
static CharKeyMap |
asCharKeys(Map map)
Returns an adaption of a map to a primitive map from char keys to objects. |
static CharKeyShortMap |
asCharKeyShorts(Map map)
Returns an adaption of a map to a primitive map from char keys to short values. |
static CharCollection |
asChars(Collection collection)
Returns an adaption of a collection to a collection of primitive char values. |
static CharIterator |
asChars(Iterator iterator)
Returns an adaption of an iterator to an iterator over primitive char values. |
static CharList |
asChars(List list)
Returns an adaption of a list to a list of primitive char values. |
static CharListIterator |
asChars(ListIterator iterator)
Returns an adaption of a list iterator to a list iterator over primitive char values. |
static CharSet |
asChars(Set set)
Returns an adaption of a set to a set of primitive char values. |
static CharSortedSet |
asChars(SortedSet set)
Returns an adaption of a sorted set to a sorted set of primitive char values. |
static DoubleKeyBooleanMap |
asDoubleKeyBooleans(Map map)
Returns an adaption of a map to a primitive map from double keys to boolean values. |
static DoubleKeyByteMap |
asDoubleKeyBytes(Map map)
Returns an adaption of a map to a primitive map from double keys to byte values. |
static DoubleKeyCharMap |
asDoubleKeyChars(Map map)
Returns an adaption of a map to a primitive map from double keys to char values. |
static DoubleKeyDoubleMap |
asDoubleKeyDoubles(Map map)
Returns an adaption of a map to a primitive map from double keys to double values. |
static DoubleKeyFloatMap |
asDoubleKeyFloats(Map map)
Returns an adaption of a map to a primitive map from double keys to float values. |
static DoubleKeyIntMap |
asDoubleKeyInts(Map map)
Returns an adaption of a map to a primitive map from double keys to int values. |
static DoubleKeyLongMap |
asDoubleKeyLongs(Map map)
Returns an adaption of a map to a primitive map from double keys to long values. |
static DoubleKeyMap |
asDoubleKeys(Map map)
Returns an adaption of a map to a primitive map from double keys to objects. |
static DoubleKeyShortMap |
asDoubleKeyShorts(Map map)
Returns an adaption of a map to a primitive map from double keys to short values. |
static DoubleCollection |
asDoubles(Collection collection)
Returns an adaption of a collection to a collection of primitive double values. |
static DoubleIterator |
asDoubles(Iterator iterator)
Returns an adaption of an iterator to an iterator over primitive double values. |
static DoubleList |
asDoubles(List list)
Returns an adaption of a list to a list of primitive double values. |
static DoubleListIterator |
asDoubles(ListIterator iterator)
Returns an adaption of a list iterator to a list iterator over primitive double values. |
static DoubleSet |
asDoubles(Set set)
Returns an adaption of a set to a set of primitive double values. |
static DoubleSortedSet |
asDoubles(SortedSet set)
Returns an adaption of a sorted set to a sorted set of primitive double values. |
static FloatKeyBooleanMap |
asFloatKeyBooleans(Map map)
Returns an adaption of a map to a primitive map from float keys to boolean values. |
static FloatKeyByteMap |
asFloatKeyBytes(Map map)
Returns an adaption of a map to a primitive map from float keys to byte values. |
static FloatKeyCharMap |
asFloatKeyChars(Map map)
Returns an adaption of a map to a primitive map from float keys to char values. |
static FloatKeyDoubleMap |
asFloatKeyDoubles(Map map)
Returns an adaption of a map to a primitive map from float keys to double values. |
static FloatKeyFloatMap |
asFloatKeyFloats(Map map)
Returns an adaption of a map to a primitive map from float keys to float values. |
static FloatKeyIntMap |
asFloatKeyInts(Map map)
Returns an adaption of a map to a primitive map from float keys to int values. |
static FloatKeyLongMap |
asFloatKeyLongs(Map map)
Returns an adaption of a map to a primitive map from float keys to long values. |
static FloatKeyMap |
asFloatKeys(Map map)
Returns an adaption of a map to a primitive map from float keys to objects. |
static FloatKeyShortMap |
asFloatKeyShorts(Map map)
Returns an adaption of a map to a primitive map from float keys to short values. |
static FloatCollection |
asFloats(Collection collection)
Returns an adaption of a collection to a collection of primitive float values. |
static FloatIterator |
asFloats(Iterator iterator)
Returns an adaption of an iterator to an iterator over primitive float values. |
static FloatList |
asFloats(List list)
Returns an adaption of a list to a list of primitive float values. |
static FloatListIterator |
asFloats(ListIterator iterator)
Returns an adaption of a list iterator to a list iterator over primitive float values. |
static FloatSet |
asFloats(Set set)
Returns an adaption of a set to a set of primitive float values. |
static FloatSortedSet |
asFloats(SortedSet set)
Returns an adaption of a sorted set to a sorted set of primitive float values. |
static IntKeyBooleanMap |
asIntKeyBooleans(Map map)
Returns an adaption of a map to a primitive map from int keys to boolean values. |
static IntKeyByteMap |
asIntKeyBytes(Map map)
Returns an adaption of a map to a primitive map from int keys to byte values. |
static IntKeyCharMap |
asIntKeyChars(Map map)
Returns an adaption of a map to a primitive map from int keys to char values. |
static IntKeyDoubleMap |
asIntKeyDoubles(Map map)
Returns an adaption of a map to a primitive map from int keys to double values. |
static IntKeyFloatMap |
asIntKeyFloats(Map map)
Returns an adaption of a map to a primitive map from int keys to float values. |
static IntKeyIntMap |
asIntKeyInts(Map map)
Returns an adaption of a map to a primitive map from int keys to int values. |
static IntKeyLongMap |
asIntKeyLongs(Map map)
Returns an adaption of a map to a primitive map from int keys to long values. |
static IntKeyMap |
asIntKeys(Map map)
Returns an adaption of a map to a primitive map from int keys to objects. |
static IntKeyShortMap |
asIntKeyShorts(Map map)
Returns an adaption of a map to a primitive map from int keys to short values. |
static IntCollection |
asInts(Collection collection)
Returns an adaption of a collection to a collection of primitive int values. |
static IntIterator |
asInts(Iterator iterator)
Returns an adaption of an iterator to an iterator over primitive int values. |
static IntList |
asInts(List list)
Returns an adaption of a list to a list of primitive int values. |
static IntListIterator |
asInts(ListIterator iterator)
Returns an adaption of a list iterator to a list iterator over primitive int values. |
static IntSet |
asInts(Set set)
Returns an adaption of a set to a set of primitive int values. |
static IntSortedSet |
asInts(SortedSet set)
Returns an adaption of a sorted set to a sorted set of primitive int values. |
static LongKeyBooleanMap |
asLongKeyBooleans(Map map)
Returns an adaption of a map to a primitive map from long keys to boolean values. |
static LongKeyByteMap |
asLongKeyBytes(Map map)
Returns an adaption of a map to a primitive map from long keys to byte values. |
static LongKeyCharMap |
asLongKeyChars(Map map)
Returns an adaption of a map to a primitive map from long keys to char values. |
static LongKeyDoubleMap |
asLongKeyDoubles(Map map)
Returns an adaption of a map to a primitive map from long keys to double values. |
static LongKeyFloatMap |
asLongKeyFloats(Map map)
Returns an adaption of a map to a primitive map from long keys to float values. |
static LongKeyIntMap |
asLongKeyInts(Map map)
Returns an adaption of a map to a primitive map from long keys to int values. |
static LongKeyLongMap |
asLongKeyLongs(Map map)
Returns an adaption of a map to a primitive map from long keys to long values. |
static LongKeyMap |
asLongKeys(Map map)
Returns an adaption of a map to a primitive map from long keys to objects. |
static LongKeyShortMap |
asLongKeyShorts(Map map)
Returns an adaption of a map to a primitive map from long keys to short values. |
static LongCollection |
asLongs(Collection collection)
Returns an adaption of a collection to a collection of primitive long values. |
static LongIterator |
asLongs(Iterator iterator)
Returns an adaption of an iterator to an iterator over primitive long values. |
static LongList |
asLongs(List list)
Returns an adaption of a list to a list of primitive long values. |
static LongListIterator |
asLongs(ListIterator iterator)
Returns an adaption of a list iterator to a list iterator over primitive long values. |
static LongSet |
asLongs(Set set)
Returns an adaption of a set to a set of primitive long values. |
static LongSortedSet |
asLongs(SortedSet set)
Returns an adaption of a sorted set to a sorted set of primitive long values. |
static ObjectKeyBooleanMap |
asObjectKeyBooleans(Map map)
Returns an adaption of a map to a primitive map from object keys to boolean values. |
static ObjectKeyByteMap |
asObjectKeyBytes(Map map)
Returns an adaption of a map to a primitive map from object keys to byte values. |
static ObjectKeyCharMap |
asObjectKeyChars(Map map)
Returns an adaption of a map to a primitive map from object keys to char values. |
static ObjectKeyDoubleMap |
asObjectKeyDoubles(Map map)
Returns an adaption of a map to a primitive map from object keys to double values. |
static ObjectKeyFloatMap |
asObjectKeyFloats(Map map)
Returns an adaption of a map to a primitive map from object keys to float values. |
static ObjectKeyIntMap |
asObjectKeyInts(Map map)
Returns an adaption of a map to a primitive map from object keys to int values. |
static ObjectKeyLongMap |
asObjectKeyLongs(Map map)
Returns an adaption of a map to a primitive map from object keys to long values. |
static ObjectKeyShortMap |
asObjectKeyShorts(Map map)
Returns an adaption of a map to a primitive map from object keys to short values. |
static Collection |
asObjects(BooleanCollection collection)
Returns an adaption of a primitive collection of boolean values to a collection. |
static Iterator |
asObjects(BooleanIterator iterator)
Returns an adaption of an iterator over primitive boolean values to an iterator. |
static Map |
asObjects(BooleanKeyBooleanMap map)
Returns an adaption of a primitive map from boolean keys to boolean values to a map. |
static Map |
asObjects(BooleanKeyByteMap map)
Returns an adaption of a primitive map from boolean keys to byte values to a map. |
static Map |
asObjects(BooleanKeyDoubleMap map)
Returns an adaption of a primitive map from boolean keys to double values to a map. |
static Map |
asObjects(BooleanKeyFloatMap map)
Returns an adaption of a primitive map from boolean keys to float values to a map. |
static Map |
asObjects(BooleanKeyIntMap map)
Returns an adaption of a primitive map from boolean keys to int values to a map. |
static Map |
asObjects(BooleanKeyLongMap map)
Returns an adaption of a primitive map from boolean keys to long values to a map. |
static Map |
asObjects(BooleanKeyMap map)
Returns an adaption of a primitive map of boolean keys to a map. |
static Map |
asObjects(BooleanKeyShortMap map)
Returns an adaption of a primitive map from boolean keys to short values to a map. |
static List |
asObjects(BooleanList list)
Returns an adaption of a list of primitive boolean values to a list. |
static ListIterator |
asObjects(BooleanListIterator iterator)
Returns an adaption of a list iterator over primitive boolean values to a list iterator. |
static Set |
asObjects(BooleanSet set)
Returns an adaption of a set of primitive boolean values to a set. |
static SortedSet |
asObjects(BooleanSortedSet set)
Returns an adaption of a sorted set of primitive boolean values to a sorted set. |
static Collection |
asObjects(ByteCollection collection)
Returns an adaption of a primitive collection of byte values to a collection. |
static Iterator |
asObjects(ByteIterator iterator)
Returns an adaption of an iterator over primitive byte values to an iterator. |
static Map |
asObjects(ByteKeyBooleanMap map)
Returns an adaption of a primitive map from byte keys to boolean values to a map. |
static Map |
asObjects(ByteKeyByteMap map)
Returns an adaption of a primitive map from byte keys to byte values to a map. |
static Map |
asObjects(ByteKeyCharMap map)
Returns an adaption of a primitive map from byte keys to char values to a map. |
static Map |
asObjects(ByteKeyDoubleMap map)
Returns an adaption of a primitive map from byte keys to double values to a map. |
static Map |
asObjects(ByteKeyFloatMap map)
Returns an adaption of a primitive map from byte keys to float values to a map. |
static Map |
asObjects(ByteKeyIntMap map)
Returns an adaption of a primitive map from byte keys to int values to a map. |
static Map |
asObjects(ByteKeyLongMap map)
Returns an adaption of a primitive map from byte keys to long values to a map. |
static Map |
asObjects(ByteKeyMap map)
Returns an adaption of a primitive map of byte keys to a map. |
static Map |
asObjects(ByteKeyShortMap map)
Returns an adaption of a primitive map from byte keys to short values to a map. |
static List |
asObjects(ByteList list)
Returns an adaption of a list of primitive byte values to a list. |
static ListIterator |
asObjects(ByteListIterator iterator)
Returns an adaption of a list iterator over primitive byte values to a list iterator. |
static Set |
asObjects(ByteSet set)
Returns an adaption of a set of primitive byte values to a set. |
static SortedSet |
asObjects(ByteSortedSet set)
Returns an adaption of a sorted set of primitive byte values to a sorted set. |
static Collection |
asObjects(CharCollection collection)
Returns an adaption of a primitive collection of char values to a collection. |
static Iterator |
asObjects(CharIterator iterator)
Returns an adaption of an iterator over primitive char values to an iterator. |
static Map |
asObjects(CharKeyBooleanMap map)
Returns an adaption of a primitive map from char keys to boolean values to a map. |
static Map |
asObjects(CharKeyByteMap map)
Returns an adaption of a primitive map from char keys to byte values to a map. |
static Map |
asObjects(CharKeyCharMap map)
Returns an adaption of a primitive map from char keys to char values to a map. |
static Map |
asObjects(CharKeyDoubleMap map)
Returns an adaption of a primitive map from char keys to double values to a map. |
static Map |
asObjects(CharKeyFloatMap map)
Returns an adaption of a primitive map from char keys to float values to a map. |
static Map |
asObjects(CharKeyIntMap map)
Returns an adaption of a primitive map from char keys to int values to a map. |
static Map |
asObjects(CharKeyLongMap map)
Returns an adaption of a primitive map from char keys to long values to a map. |
static Map |
asObjects(CharKeyMap map)
Returns an adaption of a primitive map of char keys to a map. |
static Map |
asObjects(CharKeyShortMap map)
Returns an adaption of a primitive map from char keys to short values to a map. |
static List |
asObjects(CharList list)
Returns an adaption of a list of primitive char values to a list. |
static ListIterator |
asObjects(CharListIterator iterator)
Returns an adaption of a list iterator over primitive char values to a list iterator. |
static Set |
asObjects(CharSet set)
Returns an adaption of a set of primitive char values to a set. |
static SortedSet |
asObjects(CharSortedSet set)
Returns an adaption of a sorted set of primitive char values to a sorted set. |
static Collection |
asObjects(DoubleCollection collection)
Returns an adaption of a primitive collection of double values to a collection. |
static Iterator |
asObjects(DoubleIterator iterator)
Returns an adaption of an iterator over primitive double values to an iterator. |
static Map |
asObjects(DoubleKeyBooleanMap map)
Returns an adaption of a primitive map from double keys to boolean values to a map. |
static Map |
asObjects(DoubleKeyByteMap map)
Returns an adaption of a primitive map from double keys to byte values to a map. |
static Map |
asObjects(DoubleKeyCharMap map)
Returns an adaption of a primitive map from double keys to char values to a map. |
static Map |
asObjects(DoubleKeyDoubleMap map)
Returns an adaption of a primitive map from double keys to double values to a map. |
static Map |
asObjects(DoubleKeyFloatMap map)
Returns an adaption of a primitive map from double keys to float values to a map. |
static Map |
asObjects(DoubleKeyIntMap map)
Returns an adaption of a primitive map from double keys to int values to a map. |
static Map |
asObjects(DoubleKeyLongMap map)
Returns an adaption of a primitive map from double keys to long values to a map. |
static Map |
asObjects(DoubleKeyMap map)
Returns an adaption of a primitive map of double keys to a map. |
static Map |
asObjects(DoubleKeyShortMap map)
Returns an adaption of a primitive map from double keys to short values to a map. |
static List |
asObjects(DoubleList list)
Returns an adaption of a list of primitive double values to a list. |
static ListIterator |
asObjects(DoubleListIterator iterator)
Returns an adaption of a list iterator over primitive double values to a list iterator. |
static Set |
asObjects(DoubleSet set)
Returns an adaption of a set of primitive double values to a set. |
static SortedSet |
asObjects(DoubleSortedSet set)
Returns an adaption of a sorted set of primitive double values to a sorted set. |
static Collection |
asObjects(FloatCollection collection)
Returns an adaption of a primitive collection of float values to a collection. |
static Iterator |
asObjects(FloatIterator iterator)
Returns an adaption of an iterator over primitive float values to an iterator. |
static Map |
asObjects(FloatKeyBooleanMap map)
Returns an adaption of a primitive map from float keys to boolean values to a map. |
static Map |
asObjects(FloatKeyByteMap map)
Returns an adaption of a primitive map from float keys to byte values to a map. |
static Map |
asObjects(FloatKeyCharMap map)
Returns an adaption of a primitive map from float keys to char values to a map. |
static Map |
asObjects(FloatKeyDoubleMap map)
Returns an adaption of a primitive map from float keys to double values to a map. |
static Map |
asObjects(FloatKeyFloatMap map)
Returns an adaption of a primitive map from float keys to float values to a map. |
static Map |
asObjects(FloatKeyIntMap map)
Returns an adaption of a primitive map from float keys to int values to a map. |
static Map |
asObjects(FloatKeyLongMap map)
Returns an adaption of a primitive map from float keys to long values to a map. |
static Map |
asObjects(FloatKeyMap map)
Returns an adaption of a primitive map of float keys to a map. |
static Map |
asObjects(FloatKeyShortMap map)
Returns an adaption of a primitive map from float keys to short values to a map. |
static List |
asObjects(FloatList list)
Returns an adaption of a list of primitive float values to a list. |
static ListIterator |
asObjects(FloatListIterator iterator)
Returns an adaption of a list iterator over primitive float values to a list iterator. |
static Set |
asObjects(FloatSet set)
Returns an adaption of a set of primitive float values to a set. |
static SortedSet |
asObjects(FloatSortedSet set)
Returns an adaption of a sorted set of primitive float values to a sorted set. |
static Collection |
asObjects(IntCollection collection)
Returns an adaption of a primitive collection of int values to a collection. |
static Iterator |
asObjects(IntIterator iterator)
Returns an adaption of an iterator over primitive int values to an iterator. |
static Map |
asObjects(IntKeyBooleanMap map)
Returns an adaption of a primitive map from int keys to boolean values to a map. |
static Map |
asObjects(IntKeyByteMap map)
Returns an adaption of a primitive map from int keys to byte values to a map. |
static Map |
asObjects(IntKeyCharMap map)
Returns an adaption of a primitive map from int keys to char values to a map. |
static Map |
asObjects(IntKeyDoubleMap map)
Returns an adaption of a primitive map from int keys to double values to a map. |
static Map |
asObjects |