org.apache.hadoop.nfs
Class NfsTime

java.lang.Object
  extended by org.apache.hadoop.nfs.NfsTime

public class NfsTime
extends Object

Class that encapsulates time.


Constructor Summary
NfsTime(int seconds, int nseconds)
           
NfsTime(long milliseconds)
           
NfsTime(NfsTime other)
           
 
Method Summary
static NfsTime deserialize(XDR xdr)
           
 boolean equals(Object o)
           
 long getMilliSeconds()
          Get the total time in milliseconds
 int getNseconds()
           
 int getSeconds()
           
 int hashCode()
           
 void serialize(XDR xdr)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NfsTime

public NfsTime(int seconds,
               int nseconds)

NfsTime

public NfsTime(NfsTime other)

NfsTime

public NfsTime(long milliseconds)
Method Detail

getSeconds

public int getSeconds()

getNseconds

public int getNseconds()

getMilliSeconds

public long getMilliSeconds()
Get the total time in milliseconds


serialize

public void serialize(XDR xdr)

deserialize

public static NfsTime deserialize(XDR xdr)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009 The Apache Software Foundation