|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.novell.service.nds.NdsCounter
Provides access to values of the Counter attribute. It is used for attributes whose values are incrementally modified numeric signed integers. Any attribute defined using Counter is single-valued. Any value added to an attribute of the Counter syntax is arithmetically added to the total, and any value deleted is arithmetically subtracted from the total.
Matching Rules: Equality and Ordering
NdsSyntaxId
Constructor Summary | |
NdsCounter(int value)
Constructs an NdsCounter object from an int value. |
Method Summary | |
boolean |
approximate(java.lang.Object anObject)
Compares two Objects using the approximate matching rule. |
byte |
byteValue()
Returns the value of this NDS object as a byte. |
java.lang.Object |
clone()
Creates a new object of the same class as this object. |
int |
compareTo(java.lang.Object anObject)
Compares two objects for ordering, or compares two strings lexicographically. |
double |
doubleValue()
Returns the value of this NDS object as a double. |
boolean |
equals(java.lang.Object anObject)
Compares two Objects for equality. |
float |
floatValue()
Returns the value of this NDS object as a float. |
long |
getCounter()
Returns the long value of Counter stored in the object data member. |
int |
getNdsSyntaxId()
Returns the int that represents the NDS syntax ID. |
int |
intValue()
Returns the value of this NDS object as an int. |
long |
longValue()
Returns the value of this NDS object as a long. |
short |
shortValue()
Returns the value of this NDS object as a short. |
boolean |
supportsMatchingRules(int matchingRules)
Checks to see if this object supports the specified matching rules. |
java.lang.String |
toString()
Generates and returns a string representation of the object. |
Methods inherited from class java.lang.Object |
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public NdsCounter(int value)
value
- An int stored value.Method Detail |
public int compareTo(java.lang.Object anObject) throws java.lang.Exception
anObject
- The reference NDS Object with which
to compare.public boolean equals(java.lang.Object anObject)
The equals method implements the most discriminating possible equivalence relation on objects; that is, for any reference values X and Y, this method returns TRUE if and only if X and Y refer to the same object (X==Y has the value TRUE).
anObject
- The reference object with which to compare.public int intValue()
public long longValue()
public float floatValue()
public double doubleValue()
public byte byteValue()
public short shortValue()
public boolean approximate(java.lang.Object anObject) throws java.lang.Exception
public int getNdsSyntaxId()
public boolean supportsMatchingRules(int matchingRules)
The NdsCounter syntax supports the equality and ordering matching rules.
matchingRules
- The set of matching rules to check.public java.lang.Object clone()
public java.lang.String toString()
public long getCounter()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |