Class JSUnsignedIntegerImpl
- java.lang.Object
-
- org.bedework.jsforj.impl.values.JSValueImpl
-
- org.bedework.jsforj.impl.values.dataTypes.JSUnsignedIntegerImpl
-
- All Implemented Interfaces:
Comparable<JSUnsignedInteger>,JSUnsignedInteger,JSValue
public class JSUnsignedIntegerImpl extends JSValueImpl implements JSUnsignedInteger
User: mike Date: 5/18/20 Time: 17:50
-
-
Field Summary
-
Fields inherited from class org.bedework.jsforj.impl.values.JSValueImpl
factory, type
-
-
Constructor Summary
Constructors Constructor Description JSUnsignedIntegerImpl(int value)JSUnsignedIntegerImpl(String typeName, com.fasterxml.jackson.databind.JsonNode node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(int that)Compares with an int value numerically.intcompare(JSUnsignedInteger that)Compares with an int value numerically.intcompareTo(JSUnsignedInteger that)intget()StringtoString()-
Methods inherited from class org.bedework.jsforj.impl.values.JSValueImpl
assertArray, assertBooleanNode, assertIntNode, assertObject, assertStringNode, clear, equals, getBooleanProperty, getBooleanValue, getChanged, getFactory, getNode, getObjectType, getOverrideGenerated, getOwner, getParentProperty, getProperties, getProperty, getProperty, getPropertyValue, getStringProperty, getStringValue, getType, getUnsignedIntegerProperty, getValue, hasChanges, hasProperty, isString, makeProperty, makeProperty, markOverrideGenerated, newProperty, preWrite, removeProperty, setMasterCopy, setOwner, setParentProperty, setProperty, setProperty, setProperty, setProperty, setProperty, writeValue, writeValueAsString, writeValueAsStringFormatted
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.bedework.jsforj.model.values.JSValue
clear, copy, getBooleanProperty, getBooleanValue, getChanged, getNode, getObjectType, getOverrideGenerated, getOwner, getParentProperty, getProperties, getProperty, getProperty, getPropertyValue, getStringProperty, getStringValue, getType, getUnsignedIntegerProperty, getValue, hasChanges, hasProperty, isString, makeProperty, markOverrideGenerated, newProperty, preWrite, removeProperty, setProperty, setProperty, setProperty, setProperty, setProperty, writeValue, writeValueAsString, writeValueAsStringFormatted
-
-
-
-
Constructor Detail
-
JSUnsignedIntegerImpl
public JSUnsignedIntegerImpl(int value)
-
JSUnsignedIntegerImpl
public JSUnsignedIntegerImpl(String typeName, com.fasterxml.jackson.databind.JsonNode node)
-
-
Method Detail
-
get
public int get()
- Specified by:
getin interfaceJSUnsignedInteger
-
compare
public int compare(int that)
Description copied from interface:JSUnsignedIntegerCompares with an int value numerically. The value returned is identical to what would be returned by: Integer.valueOf(this.value).compareTo(Integer.valueOf(that))- Specified by:
comparein interfaceJSUnsignedInteger- Parameters:
that- the int to compare- Returns:
- the value 0 if this == that; a value less than 0 if this < that; and a value greater than 0 if this > that
-
compare
public int compare(JSUnsignedInteger that)
Description copied from interface:JSUnsignedIntegerCompares with an int value numerically. The value returned is identical to what would be returned by: Integer.valueOf(this.value).compareTo(Integer.valueOf(that))- Specified by:
comparein interfaceJSUnsignedInteger- Parameters:
that- the int to compare- Returns:
- the value 0 if this == that; a value less than 0 if this < that; and a value greater than 0 if this > that
-
compareTo
public int compareTo(JSUnsignedInteger that)
- Specified by:
compareToin interfaceComparable<JSUnsignedInteger>
-
-