org.pentaho.di.core
Class ObjectUsageCount
java.lang.Object
org.pentaho.di.core.ObjectUsageCount
- All Implemented Interfaces:
- Comparable<ObjectUsageCount>, Comparator<ObjectUsageCount>
public class ObjectUsageCount
- extends Object
- implements Comparator<ObjectUsageCount>, Comparable<ObjectUsageCount>
ObjectUsageCount
public ObjectUsageCount(String objectName,
int nrUses)
- Parameters:
objectName
- nrUses
-
toString
public String toString()
- Overrides:
toString
in class Object
fromString
public static ObjectUsageCount fromString(String string)
compare
public int compare(ObjectUsageCount count1,
ObjectUsageCount count2)
- Specified by:
compare
in interface Comparator<ObjectUsageCount>
compareTo
public int compareTo(ObjectUsageCount count)
- Specified by:
compareTo
in interface Comparable<ObjectUsageCount>
reset
public void reset()
increment
public int increment()
- Increment the nr of uses with 1
- Returns:
- the nr of uses
getNrUses
public int getNrUses()
- Returns:
- the nrUses
setNrUses
public void setNrUses(int nrUses)
- Parameters:
nrUses
- the nrUses to set
getObjectName
public String getObjectName()
- Returns:
- the objectName
setObjectName
public void setObjectName(String objectName)
- Parameters:
objectName
- the objectName to set