File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
core/src/main/java/org/dcache/nfs/v4/xdr Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2009 - 2018 Deutsches Elektronen-Synchroton,
2
+ * Copyright (c) 2009 - 2025 Deutsches Elektronen-Synchroton,
3
3
* Member of the Helmholtz Association, (DESY), HAMBURG, GERMANY
4
4
*
5
5
* This library is free software; you can redistribute it and/or modify
25
25
import org .dcache .oncrpc4j .xdr .XdrDecodingStream ;
26
26
import org .dcache .oncrpc4j .xdr .XdrEncodingStream ;
27
27
import java .io .IOException ;
28
+ import java .util .Arrays ;
29
+ import java .util .Objects ;
28
30
29
31
public class nfs_fh4 implements XdrAble {
30
32
@@ -56,5 +58,17 @@ public void xdrDecode(XdrDecodingStream xdr)
56
58
public String toString () {
57
59
return BaseEncoding .base16 ().lowerCase ().encode (value );
58
60
}
61
+
62
+ @ Override
63
+ public boolean equals (Object o ) {
64
+ if (o == null || getClass () != o .getClass ()) return false ;
65
+ nfs_fh4 nfsFh4 = (nfs_fh4 ) o ;
66
+ return Arrays .equals (value , nfsFh4 .value );
67
+ }
68
+
69
+ @ Override
70
+ public int hashCode () {
71
+ return Arrays .hashCode (value );
72
+ }
59
73
}
60
74
// End of nfs_fh4.java
You can’t perform that action at this time.
0 commit comments