org.semanticweb.elk.owl.managers
Class ElkEntityRecycler
java.lang.Object
org.semanticweb.elk.owl.managers.ElkEntityRecycler
- All Implemented Interfaces:
- ElkObjectRecycler
public class ElkEntityRecycler
- extends Object
- implements ElkObjectRecycler
A ElkObjectRecycler that reuses ElkEntitys. If
ElkObjectRecycler.recycle(ElkObject) is called on two structurally
equivalent ElkEntitys (i.e., with the same ElkIris), the same
object will be obtained in the output, unless one of the output
ElkEntitys has been garbage collected (i.e., is not used anymore). It
does not recycle other types of ElkObjects, and simply returns them
as the output.
- Author:
- Frantisek Simancik, "Yevgeny Kazakov"
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ElkEntityRecycler
public ElkEntityRecycler()
recycle
public ElkObject recycle(ElkObject object)
- Description copied from interface:
ElkObjectRecycler
- Process the given
ElkObject and either return itself, or another
(previously processed) ElkObject that is structurally equivalent
to the given one.
- Specified by:
recycle in interface ElkObjectRecycler
- Parameters:
object - the input ElkObject which should be processed
- Returns:
- an
ElkObject that is structurally equivalent to the given
object
Copyright © 2011-2013 Department of Computer Science, University of Oxford. All Rights Reserved.