HDFS-13761. Add toString Method to AclFeature Class. Contributed by Shweta.
This commit is contained in:
parent
849c45db18
commit
26864471c2
@ -72,6 +72,11 @@ public boolean equals(Object o) {
|
|||||||
return Arrays.equals(entries, ((AclFeature) o).entries);
|
return Arrays.equals(entries, ((AclFeature) o).entries);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "AclFeature : " + Integer.toHexString(hashCode()) + " Size of entries : " + entries.length;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Arrays.hashCode(entries);
|
return Arrays.hashCode(entries);
|
||||||
|
Loading…
Reference in New Issue
Block a user