예제 #1
0
 /**
  * Returns true iff the value parameter is a {@link GUID} and the VMID is equal.
  *
  * @see java.lang.Object#equals(java.lang.Object)
  */
 @Override
 public boolean equals(Object o) {
   boolean ret = false;
   if (o instanceof GUID) {
     ret = _vmid.equals(((GUID) o)._vmid);
   }
   return ret;
 }
예제 #2
0
 /**
  * Get the string version of the VMID.
  *
  * @see java.lang.Object#toString()
  */
 @Override
 public String toString() {
   return _vmid.toString().toUpperCase();
 }
예제 #3
0
 /**
  * Get the hashcode of the VMID.
  *
  * @see java.lang.Object#hashCode()
  */
 @Override
 public int hashCode() {
   return _vmid.hashCode();
 }
예제 #4
0
 @Override
 public int hashCode() {
   return m_id ^ m_prefix.hashCode();
 }