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 11/*
2- * Copyright (c) 2009 - 2018 Deutsches Elektronen-Synchroton,
2+ * Copyright (c) 2009 - 2025 Deutsches Elektronen-Synchroton,
33 * Member of the Helmholtz Association, (DESY), HAMBURG, GERMANY
44 *
55 * This library is free software; you can redistribute it and/or modify
2525import org .dcache .oncrpc4j .xdr .XdrDecodingStream ;
2626import org .dcache .oncrpc4j .xdr .XdrEncodingStream ;
2727import java .io .IOException ;
28+ import java .util .Arrays ;
29+ import java .util .Objects ;
2830
2931public class nfs_fh4 implements XdrAble {
3032
@@ -56,5 +58,17 @@ public void xdrDecode(XdrDecodingStream xdr)
5658 public String toString () {
5759 return BaseEncoding .base16 ().lowerCase ().encode (value );
5860 }
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+ }
5973}
6074// End of nfs_fh4.java
You can’t perform that action at this time.
0 commit comments