com.intel.hadoop.graphbuilder.types
Class LongType

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

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

Basic long type in the library.


Constructor Summary
LongType()
           
LongType(long i)
           
 
Method Summary
 void add(LongType other)
           
 int compareTo(LongType o)
           
 boolean equals(java.lang.Object obj)
           
 long get()
           
 int hashCode()
           
 void readFields(java.io.DataInput arg0)
           
 void set(long 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
 

Constructor Detail

LongType

public LongType()

LongType

public LongType(long i)
Method Detail

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

compareTo

public int compareTo(LongType o)
Specified by:
compareTo in interface java.lang.Comparable<LongType>

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

get

public long get()

set

public void set(long i)

add

public void add(LongType other)
Specified by:
add in interface Mergable<LongType>

toJSONString

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