Package com.lattix.core.depends
Interface AtomCollection
- All Superinterfaces:
BasicCollection<Atom>
,Iterable<Atom>
- All Known Subinterfaces:
AtomSet
,Partition.OtherAtomsCollection
AtomCollection represents a collection of Atom objects.
- Author:
- Carl Parisi
-
Field Summary
Fields inherited from interface com.lattix.util.BasicCollection
REVISION
-
Method Summary
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
contains
Returns true if the given atom is in this collection- Specified by:
contains
in interfaceBasicCollection<Atom>
- Returns:
- true if the given atom is in this collection
-
size
int size()Return the number of atoms in this collection- Returns:
- the number of atoms in this collection.
-
isEmpty
boolean isEmpty()Returns true if this collection is empty.- Specified by:
isEmpty
in interfaceBasicCollection<Atom>
- Returns:
- true if this collection is empty.
-
iterator
Return an iterator to visit each atom in this collection.
-