com.intel.hadoop.graphbuilder.types
Class FloatType

java.lang.Object
  extended by com.intel.hadoop.graphbuilder.types.FloatType
All Implemented Interfaces:
Mergable<FloatType>, java.lang.Comparable<FloatType>, net.minidev.json.JSONAware, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable<FloatType>

public class FloatType
extends java.lang.Object
implements org.apache.hadoop.io.WritableComparable<FloatType>, Mergable<FloatType>, net.minidev.json.JSONAware

Basic float type in the library.


Field Summary
static FloatType ONE
           
static FloatType ZERO
           
 
Constructor Summary
FloatType()
           
FloatType(float i)
           
 
Method Summary
 void add(FloatType other)
           
 int compareTo(FloatType arg0)
           
 boolean equals(java.lang.Object obj)
           
 float get()
           
 int hashCode()
           
 void readFields(java.io.DataInput arg0)
           
 void set(float i)
           
 java.lang.String toJSONString()
           
 java.lang.String toString()
           
 void write(java.io.DataOutput arg0)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ZERO

public static final FloatType ZERO

ONE

public static final FloatType ONE
Constructor Detail

FloatType

public FloatType()

FloatType

public FloatType(float i)
Method Detail

get

public float 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(FloatType arg0)
Specified by:
compareTo in interface java.lang.Comparable<FloatType>

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(FloatType other)
Specified by:
add in interface Mergable<FloatType>

toJSONString

public java.lang.String toJSONString()
Specified by:
toJSONString in interface net.minidev.json.JSONAware