org.joda.primitives.collection
Interface PrimitiveCollection<E>
- All Superinterfaces:
- Collection<E>, Iterable<E>, PrimitiveCollectable<E>
- All Known Subinterfaces:
- BooleanCollection, BooleanList, ByteCollection, ByteList, CharCollection, CharList, DoubleCollection, DoubleList, FloatCollection, FloatList, IntCollection, IntList, LongCollection, LongList, PrimitiveList<E>, ShortCollection, ShortList
- All Known Implementing Classes:
- AbstractBooleanCollection, AbstractBooleanList, AbstractByteCollection, AbstractByteList, AbstractCharCollection, AbstractCharList, AbstractDoubleCollection, AbstractDoubleList, AbstractFloatCollection, AbstractFloatList, AbstractIntCollection, AbstractIntList, AbstractLongCollection, AbstractLongList, AbstractShortCollection, AbstractShortList, ArrayBooleanCollection, ArrayBooleanList, ArrayByteCollection, ArrayByteList, ArrayCharCollection, ArrayCharList, ArrayDoubleCollection, ArrayDoubleList, ArrayFloatCollection, ArrayFloatList, ArrayIntCollection, ArrayIntList, ArrayLongCollection, ArrayLongList, ArrayShortCollection, ArrayShortList, ImmutableArrayBooleanList, ImmutableArrayByteList, ImmutableArrayCharList, ImmutableArrayDoubleList, ImmutableArrayFloatList, ImmutableArrayIntList, ImmutableArrayLongList, ImmutableArrayShortList, StringBufferCharList, StringCharList
public interface PrimitiveCollection<E>
- extends PrimitiveCollectable<E>, Collection<E>
Base interface for all primitive collection interfaces.
This interface extends Collection
allowing seamless
integration with other APIs.
All Collection methods can be used, using the primitive wrapper class.
However, it will be much more efficient to use the direct primitive methods
in the subinterface.
- Since:
- 1.0
- Author:
- Stephen Colebourne
Method Summary |
boolean |
containsAny(Collection<?> values)
Checks if this collection contains any of the values in the specified collection. |
Methods inherited from interface java.util.Collection |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
containsAny
boolean containsAny(Collection<?> values)
- Checks if this collection contains any of the values in the specified collection.
If the specified collection is empty,
false
is returned.
- Parameters:
values
- the values to search for, null treated as empty collection
- Returns:
true
if at least one of the values is found
Copyright © 2005-2010 Joda.org. All Rights Reserved.