コード例 #1
0
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((id == null) ? 0 : id.hashCode());
   result = prime * result + ((persistentOwner == null) ? 0 : persistentOwner.hashCode());
   result =
       prime * result
           + ((persistentStorageDomainStatus == null)
               ? 0
               : persistentStorageDomainStatus.hashCode());
   return result;
 }
コード例 #2
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   storage_pool_iso_map other = (storage_pool_iso_map) obj;
   if (id == null) {
     if (other.id != null) return false;
   } else if (!id.equals(other.id)) return false;
   if (persistentOwner == null) {
     if (other.persistentOwner != null) return false;
   } else if (!persistentOwner.equals(other.persistentOwner)) return false;
   if (persistentStorageDomainStatus == null) {
     if (other.persistentStorageDomainStatus != null) return false;
   } else if (!persistentStorageDomainStatus.equals(other.persistentStorageDomainStatus))
     return false;
   return true;
 }
コード例 #3
0
 public void setstorage_id(Guid value) {
   id.setStorageId(value);
 }
コード例 #4
0
 public Guid getstorage_id() {
   return id.getStorageId();
 }