Class ByteFieldValue

  • All Implemented Interfaces:
    java.lang.Cloneable, java.lang.Comparable<FieldValue>

    public class ByteFieldValue
    extends NumericFieldValue
    A byte field value
    Author:
    Einar M R Rosenvinge
    • Field Detail

      • classId

        public static final int classId
    • Constructor Detail

      • ByteFieldValue

        public ByteFieldValue()
      • ByteFieldValue

        public ByteFieldValue​(byte value)
      • ByteFieldValue

        public ByteFieldValue​(java.lang.Byte value)
      • ByteFieldValue

        public ByteFieldValue​(java.lang.Integer value)
      • ByteFieldValue

        public ByteFieldValue​(java.lang.String s)
    • Method Detail

      • assign

        public void assign​(java.lang.Object o)
        Description copied from class: FieldValue
        Assign this non-fieldvalue value to this field value. This is used to be able to assign ints to Integer field values and List to Array field values and such.

        Override to accept the specific types that should be legal.

        Specified by:
        assign in class FieldValue
      • getByte

        public byte getByte()
      • getWrappedValue

        public java.lang.Object getWrappedValue()
        Description copied from class: FieldValue
        Used to retrieve wrapped type for simple types, such that you can use get methods to retrieve ints and floats directly instead of Int/Float field values. Complex types that can't be specified by simple java types just return themself.
        Overrides:
        getWrappedValue in class FieldValue
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class com.yahoo.vespa.objects.Identifiable
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.yahoo.vespa.objects.Identifiable
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class com.yahoo.vespa.objects.Identifiable