added toString hashCode and equals to context objects

This commit is contained in:
Adrian Cole 2010-07-06 13:32:13 -07:00
parent 5680ef5c1c
commit e90857d7a4
2 changed files with 29 additions and 0 deletions

View File

@ -118,4 +118,19 @@ public class BlobStoreContextImpl<S, A> implements BlobStoreContext {
public Utils utils() {
return utils;
}
@Override
public int hashCode() {
return providerSpecificContext.hashCode();
}
@Override
public String toString() {
return providerSpecificContext.toString();
}
@Override
public boolean equals(Object obj) {
return providerSpecificContext.equals(obj);
}
}

View File

@ -80,4 +80,18 @@ public class ComputeServiceContextImpl<S, A> implements ComputeServiceContext {
public Utils utils() {
return utils;
}
public int hashCode() {
return providerSpecificContext.hashCode();
}
@Override
public String toString() {
return providerSpecificContext.toString();
}
@Override
public boolean equals(Object obj) {
return providerSpecificContext.equals(obj);
}
}