com.intel.hadoop.graphbuilder.types
Class IntType

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

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

Basic int type in the library.


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

ONE

public static final IntType ONE
Constructor Detail

IntType

public IntType()

IntType

public IntType(int 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

toString

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

compareTo

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

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

get

public int get()

set

public void set(int i)

add

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

toJSONString

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