Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.parser
Class ObjectAndLabels<O extends DatabaseObject>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.parser.ObjectAndLabels<O>

public class ObjectAndLabels<O extends DatabaseObject>
extends Object

Provides a single database objects and a list of labels associated with this object.

Author:
Elke Achtert

Field Summary
private  List<String> labels
          The list of labels associated with the database objects.
private  O object
          The database object.
 
Constructor Summary
ObjectAndLabels(O object, List<String> labels)
          Provides a single database object and a list of labels associated with this object.
 
Method Summary
 List<String> getLabels()
          Returns the list of string labels associated with the database object.
 O getObject()
          Returns the database object.
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

object

private final O extends DatabaseObject object
The database object.


labels

private final List<String> labels
The list of labels associated with the database objects.

Constructor Detail

ObjectAndLabels

public ObjectAndLabels(O object,
                       List<String> labels)
Provides a single database object and a list of labels associated with this object.

Parameters:
object - the database object
labels - the list of string labels associated with this object
Method Detail

getObject

public O getObject()
Returns the database object.

Returns:
the database object

getLabels

public List<String> getLabels()
Returns the list of string labels associated with the database object.

Returns:
the list of string labels associated with the database object

toString

public String toString()
Returns a string representation of the object.

Overrides:
toString in class Object
Returns:
a string representation of the object.

Release 0.1 (2008-07-10_1838)