Class DefaultAtomSetFactory
java.lang.Object
fr.lirmm.graphik.integraal.core.factory.DefaultAtomSetFactory
- All Implemented Interfaces:
InMemoryAtomSetFactory
Default singleton implementation of
InMemoryAtomSetFactory.- Author:
- Clément Sipieter (INRIA) <clement@6pi.fr>
-
Method Summary
Modifier and TypeMethodDescriptioncreate()Creates an empty in-memory atom set.Creates an in-memory atom set containing a single atom.Creates an in-memory atom set from the specified atoms.Creates an in-memory atom set by copying another atom set.create(InMemoryAtomSet src) Creates an in-memory atom set by copying another in-memory atom set.create(CloseableIterator<Atom> atoms) Creates an in-memory atom set from a closeable iterator.Creates an in-memory atom set from a closeable iterator without checked exceptions.static DefaultAtomSetFactoryinstance()Returns the shared atom-set factory instance.
-
Method Details
-
instance
Returns the shared atom-set factory instance.- Returns:
- the shared instance
-
create
Description copied from interface:InMemoryAtomSetFactoryCreates an empty in-memory atom set.- Specified by:
createin interfaceInMemoryAtomSetFactory- Returns:
- the created atom set
-
create
Description copied from interface:InMemoryAtomSetFactoryCreates an in-memory atom set from the specified atoms.- Specified by:
createin interfaceInMemoryAtomSetFactory- Parameters:
atoms- the atoms to insert- Returns:
- the created atom set
-
create
Description copied from interface:InMemoryAtomSetFactoryCreates an in-memory atom set from a closeable iterator.- Specified by:
createin interfaceInMemoryAtomSetFactory- Parameters:
atoms- the atoms to insert- Returns:
- the created atom set
- Throws:
IteratorException- if iterating over the source fails
-
create
Description copied from interface:InMemoryAtomSetFactoryCreates an in-memory atom set from a closeable iterator without checked exceptions.- Specified by:
createin interfaceInMemoryAtomSetFactory- Parameters:
atoms- the atoms to insert- Returns:
- the created atom set
-
create
Description copied from interface:InMemoryAtomSetFactoryCreates an in-memory atom set by copying another atom set.- Specified by:
createin interfaceInMemoryAtomSetFactory- Parameters:
src- the atom set to copy- Returns:
- the created atom set
- Throws:
IteratorException- if iterating over the source fails
-
create
Description copied from interface:InMemoryAtomSetFactoryCreates an in-memory atom set by copying another in-memory atom set.- Specified by:
createin interfaceInMemoryAtomSetFactory- Parameters:
src- the atom set to copy- Returns:
- the created atom set
-
create
Description copied from interface:InMemoryAtomSetFactoryCreates an in-memory atom set containing a single atom.- Specified by:
createin interfaceInMemoryAtomSetFactory- Parameters:
atom- the atom to insert- Returns:
- the created atom set
-