Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

LongValue.java

00001 package gov.nasa.arc.ase.jpf.jvm.examine;
00002 
00003 import gov.nasa.arc.ase.jpf.*;
00004 import gov.nasa.arc.ase.jpf.jvm.*;
00005 
00006 public class LongValue implements iValue {
00007 
00008   private long value = 0;
00009 
00010   public LongValue(long v) {
00011     value = v;
00012   }  
00013 /**
00014  * 
00015  * @return boolean
00016  * @param o java.lang.Object
00017  */
00018 public boolean equals(Object o) {
00019     if (o instanceof LongValue) return value == ((LongValue) o).value;
00020     else return false;
00021 }
00022   public long getValue() {
00023     return value;
00024   }  
00025 /**
00026  * 
00027  * @return int
00028  */
00029 public int hashCode() {
00030     return new Long(value).hashCode();
00031 }
00032   public String toString() {
00033     return "" + value;
00034   }  
00035 }

Generated at Thu Feb 7 06:50:01 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001