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.
-
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:
containsin 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:
isEmptyin interfaceBasicCollection<Atom>- Returns:
- true if this collection is empty.
-
iterator
Return an iterator to visit each atom in this collection.
-