00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 package cast.cdl;
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00026 public class CASTTime implements java.lang.Cloneable, java.io.Serializable
00027 {
00028 public long s;
00029
00030 public long us;
00031
00032 public CASTTime()
00033 {
00034 }
00035
00036 public CASTTime(long s, long us)
00037 {
00038 this.s = s;
00039 this.us = us;
00040 }
00041
00042 public boolean
00043 equals(java.lang.Object rhs)
00044 {
00045 if(this == rhs)
00046 {
00047 return true;
00048 }
00049 CASTTime _r = null;
00050 try
00051 {
00052 _r = (CASTTime)rhs;
00053 }
00054 catch(ClassCastException ex)
00055 {
00056 }
00057
00058 if(_r != null)
00059 {
00060 if(s != _r.s)
00061 {
00062 return false;
00063 }
00064 if(us != _r.us)
00065 {
00066 return false;
00067 }
00068
00069 return true;
00070 }
00071
00072 return false;
00073 }
00074
00075 public int
00076 hashCode()
00077 {
00078 int __h = 0;
00079 __h = 5 * __h + (int)s;
00080 __h = 5 * __h + (int)us;
00081 return __h;
00082 }
00083
00084 public java.lang.Object
00085 clone()
00086 {
00087 java.lang.Object o = null;
00088 try
00089 {
00090 o = super.clone();
00091 }
00092 catch(CloneNotSupportedException ex)
00093 {
00094 assert false;
00095 }
00096 return o;
00097 }
00098
00099 public void
00100 __write(IceInternal.BasicStream __os)
00101 {
00102 __os.writeLong(s);
00103 __os.writeLong(us);
00104 }
00105
00106 public void
00107 __read(IceInternal.BasicStream __is)
00108 {
00109 s = __is.readLong();
00110 us = __is.readLong();
00111 }
00112
00113 public void
00114 ice_write(Ice.OutputStream __outS)
00115 {
00116 __outS.writeLong(s);
00117 __outS.writeLong(us);
00118 }
00119
00120 public void
00121 ice_read(Ice.InputStream __inS)
00122 {
00123 s = __inS.readLong();
00124 us = __inS.readLong();
00125 }
00126 }