mirror of https://github.com/apache/jclouds.git
added toString hashCode and equals to context objects
This commit is contained in:
parent
5680ef5c1c
commit
e90857d7a4
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue