Class PropertyInteger
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<Byte>
com.highmobility.value.Bytes
com.highmobility.autoapi.property.Property<Integer>
com.highmobility.autoapi.property.PropertyInteger
-
Field Summary
Fields inherited from class com.highmobility.autoapi.property.Property
availability, components, failure, timestamp, unknownBytes, valueFields inherited from class com.highmobility.value.Bytes
bytesFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionPropertyInteger(byte identifier, boolean signed) PropertyInteger(byte identifier, boolean signed, int length, Property<Integer> value) PropertyInteger(int identifier, boolean signed) PropertyInteger(int identifier, boolean signed, int length, Property<Integer> value) PropertyInteger(Integer value) -
Method Summary
Methods inherited from class com.highmobility.autoapi.property.Property
addValueComponent, boolToByte, calendarToBytes, createBytesFromComponents, doubleToBytes, findComponents, floatToBytes, floatToIntPercentage, floatToIntPercentageByte, getAvailability, getBool, getByte, getCalendar, getCalendar, getCalendar, getCalendar, getCalendar, getComponent, getComponents, getDate, getDouble, getDouble, getDouble, getDouble, getFailureComponent, getFloat, getFloat, getFloat, getFloat, getIntegerArray, getLong, getLong, getLong, getPercentage, getPropertyIdentifier, getPropertyLength, getSignedInt, getSignedInt, getSignedInt, getSignedInt, getString, getString, getString, getString, getTimestamp, getUnsignedInt, getUnsignedInt, getUnsignedInt, getUnsignedInt, getUnsignedInt, getUtf8Length, getValue, getValueComponent, integerArrayToBytes, intToBytes, isUniversalProperty, longToBytes, printFailedToParse, setIdentifier, setIdentifier, stringToBytes, updateMethods inherited from class com.highmobility.value.Bytes
concat, concat, equals, get, getBase64, getBase64UrlSafe, getByteArray, getHex, getLength, getRange, set, set, set, size, toStringMethods inherited from class java.util.AbstractList
add, add, addAll, clear, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Constructor Details
-
PropertyInteger
-
PropertyInteger
-
PropertyInteger
-
PropertyInteger
public PropertyInteger(byte identifier, boolean signed) -
PropertyInteger
public PropertyInteger(int identifier, boolean signed)
-
-
Method Details
-
update
- Overrides:
updatein classProperty<Integer>- Throws:
CommandParseException
-
update
Reset the value and create new bytes according to the new length. Used internally because we don't want to bother the user about integer length or sign.- Parameters:
newLength- The new length.signed- The sign.value- The value.- Returns:
- Self.
-