// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.prelude.hitfield; import java.util.Arrays; import java.util.Base64; /** * @author baldersheim */ public class RawBase64 implements Comparable { private final byte[] content; public RawBase64(byte[] content) { this.content = content; } @Override public int compareTo(RawBase64 rhs) { return Arrays.compareUnsigned(content, rhs.content); } @Override public String toString() { return Base64.getEncoder().encodeToString(content); } }