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
-
Method Summary
Modifier and TypeMethodDescriptionint
compare
(ObjectUsageCount count1, ObjectUsageCount count2) int
compareTo
(ObjectUsageCount count) static ObjectUsageCount
fromString
(String string) int
int
Increment the nr of uses with 1void
reset()
void
setNrUses
(int nrUses) void
setObjectName
(String objectName) 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 Details
-
ObjectUsageCount
- Parameters:
objectName
-nrUses
-
-
-
Method Details
-
toString
-
fromString
-
compare
- Specified by:
compare
in interfaceComparator<ObjectUsageCount>
-
compareTo
- 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
- Returns:
- the objectName
-
setObjectName
- Parameters:
objectName
- the objectName to set
-