1
package com.eucalyptus.reporting.modules.s3;
4
public class S3SummaryKey
6
private final String ownerId;
7
private final String accountId;
9
public S3SummaryKey(String ownerId, String accountId)
12
this.ownerId = ownerId;
13
this.accountId = accountId;
16
public S3SummaryKey(S3SnapshotKey snapshotKey)
18
this(snapshotKey.getOwnerId(), snapshotKey.getAccountId());
21
public String getOwnerId()
26
public String getAccountId()
31
public String toString()
33
return String.format("[owner:%s,account:%s", ownerId, accountId);
41
result = prime * result
42
+ ((accountId == null) ? 0 : accountId.hashCode());
43
result = prime * result + ((ownerId == null) ? 0 : ownerId.hashCode());
48
public boolean equals(Object obj)
54
if (getClass() != obj.getClass())
56
S3SummaryKey other = (S3SummaryKey) obj;
57
if (accountId == null) {
58
if (other.accountId != null)
60
} else if (!accountId.equals(other.accountId))
62
if (ownerId == null) {
63
if (other.ownerId != null)
65
} else if (!ownerId.equals(other.ownerId))