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 -
Method Summary
Modifier and TypeMethodDescriptionintcompare(ObjectUsageCount count1, ObjectUsageCount count2) intcompareTo(ObjectUsageCount count) static ObjectUsageCountfromString(String string) intintIncrement the nr of uses with 1voidreset()voidsetNrUses(int nrUses) voidsetObjectName(String objectName) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
comparein interfaceComparator<ObjectUsageCount>
-
compareTo
- Specified by:
compareToin 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
-