Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.utilities
Class IDPropertyPair<P>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.utilities.IDPropertyPair<P>
Type Parameters:
P - the type of the second component

public class IDPropertyPair<P>
extends Object

Holds a pair of an id (int) and another type.

Author:
Arthur Zimek

Field Summary
private  int id
          First component of the pair: an id.
private  P property
          Second component of the pair: a property of arbitrary type
 
Constructor Summary
IDPropertyPair(int id, P property)
          Constructs a pair of an int and another type
 
Method Summary
 int getId()
          Provides the id component of the pair.
 P getProperty()
          Provides the property component of the pair.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

private int id
First component of the pair: an id.


property

private P property
Second component of the pair: a property of arbitrary type

Constructor Detail

IDPropertyPair

public IDPropertyPair(int id,
                      P property)
Constructs a pair of an int and another type

Parameters:
id - the integer part (id)
property - the second component
Method Detail

getId

public int getId()
Provides the id component of the pair.

Returns:
the id component of the pair

getProperty

public P getProperty()
Provides the property component of the pair.

Returns:
the property component of the pair

Release 0.1 (2008-07-10_1838)