~yujiri/libsufec-java

8249195984b3dafdbc386110a649d76dab7860bf — Yujiri a month ago 912e951
add SufecAddr.equals
1 files changed, 4 insertions(+), 0 deletions(-)

M src/main/java/jsufec/SufecAddr.java
M src/main/java/jsufec/SufecAddr.java => src/main/java/jsufec/SufecAddr.java +4 -0
@@ 3,6 3,7 @@ package jsufec;
import java.nio.ByteBuffer;
import java.nio.charset.StandardCharsets;
import java.util.Base64;
import java.util.Arrays;
import com.goterl.lazysodium.utils.Key;
import com.goterl.lazysodium.interfaces.Box;



@@ 42,4 43,7 @@ public class SufecAddr {
			s.substring(atPos + 1)
		);
	}
	public boolean equals(SufecAddr other) {
		return Arrays.equals(other.id.getAsBytes(), this.id.getAsBytes()) && other.at.equals(this.at);
	}
}