public class CS1CounterAndValue extends AbstractFieldsObject
CounterAndValue ::=
SEQUENCE {
counterID CounterID,
counterValue Integer4
}
Used in array as field type by CS1ServiceFilteringResponseArg.
FIELD_ABSENT, FIELD_UNINITIALISED| Constructor and Description |
|---|
CS1CounterAndValue()
Constructs an object with uninitialised state.
|
CS1CounterAndValue(int CounterID_param,
int CounterValue_param)
Constructs an object from given values for all fields.
|
| Modifier and Type | Method and Description |
|---|---|
CS1CounterAndValue |
clone()
Constructs a copy of this object and everything reachable from it.
|
static CS1CounterAndValue |
copyOf(CS1CounterAndValue from)
Creates a new object of this type, cloning the values of common fields from the given object of any subclass of the same base type.
|
int |
getCounterID()
Gets the value of the field counterID.
|
int |
getCounterValue()
Gets the value of the field counterValue.
|
static FieldAccessor[] |
getFieldAccessors()
Gets a new array of the accessors for fields of this type.
|
Map<String,Object> |
getFieldsMap(boolean withAbsents)
Gets a Map from field-name to field-value.
|
boolean |
hasCounterID()
Tests whether the field counterID has a value.
|
boolean |
hasCounterValue()
Tests whether the field counterValue has a value.
|
CS1CounterAndValue |
setCounterID(int value)
Sets the value of the field counterID and marks the field as present.
|
CS1CounterAndValue |
setCounterValue(int value)
Sets the value of the field counterValue and marks the field as present.
|
equals, hashCode, toStringcheckModify, isReadOnly, setReadOnlypublic CS1CounterAndValue()
public CS1CounterAndValue(int CounterID_param,
int CounterValue_param)
CounterID_param - value for that fieldCounterValue_param - value for that fieldpublic CS1CounterAndValue clone()
clone in interface DataObjectclone in class AbstractDataObjectpublic static CS1CounterAndValue copyOf(CS1CounterAndValue from)
from - the object from which to copypublic int getCounterID()
public int getCounterValue()
public static FieldAccessor[] getFieldAccessors()
public Map<String,Object> getFieldsMap(boolean withAbsents)
getFieldsMap in class AbstractFieldsObjectwithAbsents - whether to put absent optional fields into Mappublic boolean hasCounterID()
public boolean hasCounterValue()
public CS1CounterAndValue setCounterID(int value) throws IllegalStateException
value - the new value for the fieldIllegalStateException - if this instance has been marked as read-onlypublic CS1CounterAndValue setCounterValue(int value) throws IllegalStateException
value - the new value for the fieldIllegalStateException - if this instance has been marked as read-only