示例#1
0
 @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;
 }
示例#2
0
 @Override
 public int compareTo(WaveletName o) {
   return waveId.equals(o.waveId) ? waveletId.compareTo(o.waveletId) : waveId.compareTo(o.waveId);
 }
示例#3
0
 @Override
 public int hashCode() {
   return waveId.hashCode() * 37 + waveletId.hashCode();
 }
示例#4
0
 /** 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));
 }