com.devexperts.util
Interface LongCollection

All Superinterfaces:
Collection<Long>, Iterable<Long>
All Known Subinterfaces:
LongSet
All Known Implementing Classes:
AbstractLongSet, LongHashSet

public interface LongCollection
extends Collection<Long>

This class extends Collection with methods that are specific for long values.


Method Summary
 boolean add(long key)
          Ensures that this collection contains the specified element.
 boolean contains(long key)
          Returns true if this collection contains the specified element.
 LongIterator longIterator()
          Returns an iterator over the elements in this collection.
 boolean remove(long key)
          Removes a single instance of the specified element from this collection, if it is present.
 long[] toLongArray()
          Returns an array containing all of the elements in this collection.
 
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Method Detail

contains

boolean contains(long key)
Returns true if this collection contains the specified element.

See Also:
Collection.contains(Object)

add

boolean add(long key)
Ensures that this collection contains the specified element.

See Also:
Collection.add(Object)

remove

boolean remove(long key)
Removes a single instance of the specified element from this collection, if it is present.

See Also:
Collection.remove(Object)

toLongArray

long[] toLongArray()
Returns an array containing all of the elements in this collection.

See Also:
Collection.toArray()

longIterator

LongIterator longIterator()
Returns an iterator over the elements in this collection.

See Also:
Collection.iterator()


Copyright © 2013 Devexperts. All Rights Reserved.