@Override public boolean equals(Object other) { if (other instanceof WaveletName) { WaveletName o = (WaveletName) other; return waveId.equals(o.waveId) && waveletId.equals(o.waveletId); } return false; }
@Override public int compareTo(WaveletName o) { return waveId.equals(o.waveId) ? waveletId.compareTo(o.waveletId) : waveId.compareTo(o.waveId); }
@Override public int hashCode() { return waveId.hashCode() * 37 + waveletId.hashCode(); }
/** Constructs a wavelet name for wave and wavelet id components. */ public static WaveletName of( String waveDomain, String waveId, String waveletDomain, String waveletId) { return new WaveletName(WaveId.of(waveDomain, waveId), WaveletId.of(waveletDomain, waveletId)); }