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
All Implemented Interfaces:
Iterable<Byte>, Collection<Byte>, List<Byte>

public class PropertyInteger extends Property<Integer>
  • Constructor Details

    • PropertyInteger

      public PropertyInteger(Integer value)
    • PropertyInteger

      public PropertyInteger(byte identifier, boolean signed, int length, Property<Integer> value)
    • PropertyInteger

      public PropertyInteger(int identifier, boolean signed, int length, Property<Integer> value)
    • PropertyInteger

      public PropertyInteger(byte identifier, boolean signed)
    • PropertyInteger

      public PropertyInteger(int identifier, boolean signed)
  • Method Details

    • update

      public Property update(Property p) throws CommandParseException
      Overrides:
      update in class Property<Integer>
      Throws:
      CommandParseException
    • update

      public Property update(boolean signed, int newLength, @Nullable Integer value)
      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.