org.gcube.indexmanagement.featureindexlibrary.commons
Class RankedResultElement

java.lang.Object
  extended by org.gcube.indexmanagement.featureindexlibrary.commons.RankedResultElement

public class RankedResultElement
extends Object

Element holding rank info

Author:
UoA

Constructor Summary
RankedResultElement(String id, float rank)
          Creates a new instance
 
Method Summary
 String getId()
          The id
 String getIndexName()
          Retrieves the index name
 float getRank()
          Retrieves the rank
 void setId(String id)
          Sets the id
 void setIndexName(String indexName)
          Sets the index name
 void setRank(float rank)
          Sets the rank
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RankedResultElement

public RankedResultElement(String id,
                           float rank)
Creates a new instance

Parameters:
id - The id
rank - The rank
Method Detail

getId

public String getId()
The id

Returns:
The id

setId

public void setId(String id)
Sets the id

Parameters:
id - The id

getRank

public float getRank()
Retrieves the rank

Returns:
The rank

setRank

public void setRank(float rank)
Sets the rank

Parameters:
rank - the rank

setIndexName

public void setIndexName(String indexName)
Sets the index name

Parameters:
indexName - The index name

getIndexName

public String getIndexName()
Retrieves the index name

Returns:
the index name


Copyright © 2013. All Rights Reserved.