com.intel.hadoop.graphbuilder.types
Class DoubleType
java.lang.Object
com.intel.hadoop.graphbuilder.types.DoubleType
- All Implemented Interfaces:
- Mergable<DoubleType>, java.lang.Comparable<DoubleType>, net.minidev.json.JSONAware, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable<DoubleType>
public class DoubleType
- extends java.lang.Object
- implements org.apache.hadoop.io.WritableComparable<DoubleType>, Mergable<DoubleType>, net.minidev.json.JSONAware
Basic double type in the library.
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
ZERO
public static final DoubleType ZERO
ONE
public static final DoubleType ONE
DoubleType
public DoubleType()
DoubleType
public DoubleType(float i)
get
public double get()
set
public void set(float i)
readFields
public void readFields(java.io.DataInput arg0)
throws java.io.IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Throws:
java.io.IOException
write
public void write(java.io.DataOutput arg0)
throws java.io.IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
compareTo
public int compareTo(DoubleType arg0)
- Specified by:
compareTo
in interface java.lang.Comparable<DoubleType>
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
add
public void add(DoubleType other)
- Specified by:
add
in interface Mergable<DoubleType>
toJSONString
public java.lang.String toJSONString()
- Specified by:
toJSONString
in interface net.minidev.json.JSONAware