Package 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>
-
-
Constructor Summary
Constructors Constructor Description ObjectUsageCount(String objectName, int nrUses)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(ObjectUsageCount count1, ObjectUsageCount count2)
int
compareTo(ObjectUsageCount count)
static ObjectUsageCount
fromString(String string)
int
getNrUses()
String
getObjectName()
int
increment()
Increment the nr of uses with 1void
reset()
void
setNrUses(int nrUses)
void
setObjectName(String objectName)
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Constructor Detail
-
ObjectUsageCount
public ObjectUsageCount(String objectName, int nrUses)
- Parameters:
objectName
-nrUses
-
-
-
Method Detail
-
fromString
public static ObjectUsageCount fromString(String string)
-
compare
public int compare(ObjectUsageCount count1, ObjectUsageCount count2)
- Specified by:
compare
in interfaceComparator<ObjectUsageCount>
-
compareTo
public int compareTo(ObjectUsageCount count)
- Specified by:
compareTo
in interfaceComparable<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
-
-