Class OscLong

java.lang.Object
heronarts.lx.osc.OscLong
All Implemented Interfaces:
OscArgument
Direct Known Subclasses:
OscTimeTag

public class OscLong extends Object implements OscArgument
  • Constructor Details

    • OscLong

      public OscLong()
    • OscLong

      public OscLong(long value)
  • Method Details

    • setValue

      public OscLong setValue(long value)
    • getValue

      public long getValue()
    • getByteLength

      public int getByteLength()
      Description copied from interface: OscArgument
      Gets the number of bytes used by this argument uses in its encoded representation.
      Specified by:
      getByteLength in interface OscArgument
      Returns:
      Number of bytes of data this argument consumes
    • getTypeTag

      public char getTypeTag()
      Description copied from interface: OscArgument
      Returns the type tag used to encode this argument
      Specified by:
      getTypeTag in interface OscArgument
      Returns:
      Type-tag character for this argument
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • serialize

      public void serialize(ByteBuffer buffer)
      Description copied from interface: OscArgument
      Serializes this argument to a buffer
      Specified by:
      serialize in interface OscArgument
      Parameters:
      buffer - ByteByffer to write to
    • toInt

      public int toInt()
      Description copied from interface: OscArgument
      Gets an integer value of this argument
      Specified by:
      toInt in interface OscArgument
      Returns:
      Integer value of this argument
    • toFloat

      public float toFloat()
      Specified by:
      toFloat in interface OscArgument
    • toDouble

      public double toDouble()
      Specified by:
      toDouble in interface OscArgument
    • toBoolean

      public boolean toBoolean()
      Specified by:
      toBoolean in interface OscArgument