Class EncodedValue

java.lang.Object
com.googlecode.d2j.dex.writer.ev.EncodedValue
All Implemented Interfaces:
Comparable<EncodedValue>

public class EncodedValue extends Object implements Comparable<EncodedValue>
  • Field Details

  • Constructor Details

    • EncodedValue

      public EncodedValue(int valueType, Object value)
  • Method Details

    • lengthOfDouble

      public static int lengthOfDouble(double value)
    • lengthOfFloat

      public static int lengthOfFloat(float value)
    • lengthOfSint

      public static int lengthOfSint(int value)
    • lengthOfSint

      public static int lengthOfSint(long value)
    • lengthOfUint

      public static int lengthOfUint(int val)
    • wrap

      public static EncodedValue wrap(Object v)
    • defaultValueForType

      public static EncodedValue defaultValueForType(String typeString)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • isDefaultValueForType

      public boolean isDefaultValueForType()
    • doPlace

      protected int doPlace(int offset)
    • getValueArg

      protected int getValueArg()
    • place

      public final int place(int offset)
    • write

      public void write(DataOut out)
    • compareTo

      public int compareTo(EncodedValue o)
      Specified by:
      compareTo in interface Comparable<EncodedValue>