Class TripConstants

java.lang.Object
org.tentackle.trip.TripConstants

public class TripConstants extends Object
Some constants used in the Trip protocol.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Maximum value for 3-byte signed integers.
    static final int
    Minimum value for 3-byte signed integers.
    static final long
    Maximum value for 5-byte signed longs.
    static final long
    Minimum value for 5-byte signed longs.
    static final long
    Maximum value for 6-byte signed longs.
    static final long
    Minimum value for 6-byte signed longs.
    static final long
    Maximum value for 7-byte signed longs.
    static final long
    Minimum value for 7-byte signed longs.
    static final byte[]
    The 2-byte magic number (TRIP connection header): » «
    Which is followed by the UUID of the transport.
    static final int
    Maximum value for unsigned bytes.
    static final int
    Maximum value for unsigned 3-byte integers.
    static final int
    Maximum value for unsigned shorts.
  • Method Summary

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • MAGIC

      public static final byte[] MAGIC
      The 2-byte magic number (TRIP connection header): » «
      Which is followed by the UUID of the transport.
    • UNSIGNED_BYTE_MAX

      public static final int UNSIGNED_BYTE_MAX
      Maximum value for unsigned bytes.
      See Also:
    • UNSIGNED_SHORT_MAX

      public static final int UNSIGNED_SHORT_MAX
      Maximum value for unsigned shorts.
      See Also:
    • UNSIGNED_INT3_MAX

      public static final int UNSIGNED_INT3_MAX
      Maximum value for unsigned 3-byte integers.
      See Also:
    • INT3_MAX

      public static final int INT3_MAX
      Maximum value for 3-byte signed integers.
      See Also:
    • INT3_MIN

      public static final int INT3_MIN
      Minimum value for 3-byte signed integers.
      See Also:
    • LONG5_MAX

      public static final long LONG5_MAX
      Maximum value for 5-byte signed longs.
      See Also:
    • LONG5_MIN

      public static final long LONG5_MIN
      Minimum value for 5-byte signed longs.
      See Also:
    • LONG6_MAX

      public static final long LONG6_MAX
      Maximum value for 6-byte signed longs.
      See Also:
    • LONG6_MIN

      public static final long LONG6_MIN
      Minimum value for 6-byte signed longs.
      See Also:
    • LONG7_MAX

      public static final long LONG7_MAX
      Maximum value for 7-byte signed longs.
      See Also:
    • LONG7_MIN

      public static final long LONG7_MIN
      Minimum value for 7-byte signed longs.
      See Also: