@Test public void equalsTest() throws Exception { AlluxioConfiguration conf = ConfigurationTestUtils.defaults(); CommonUtils.testEquals(RoundRobinPolicy.class, new Class[]{AlluxioConfiguration.class}, new Object[]{conf}); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof RoundRobinPolicy)) { return false; } RoundRobinPolicy that = (RoundRobinPolicy) o; return Objects.equal(mWorkerInfoList, that.mWorkerInfoList) && Objects.equal(mIndex, that.mIndex) && Objects.equal(mInitialized, that.mInitialized) && Objects.equal(mBlockLocationCache, that.mBlockLocationCache); }
RoundRobinPolicy implements BlockLocationPolicy { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof RoundRobinPolicy)) { return false; } RoundRobinPolicy that = (RoundRobinPolicy) o; return Objects.equal(mWorkerInfoList, that.mWorkerInfoList) && Objects.equal(mIndex, that.mIndex) && Objects.equal(mInitialized, that.mInitialized) && Objects.equal(mBlockLocationCache, that.mBlockLocationCache); } }
RoundRobinPolicy implements BlockLocationPolicy { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof RoundRobinPolicy)) { return false; } RoundRobinPolicy that = (RoundRobinPolicy) o; return Objects.equal(mWorkerInfoList, that.mWorkerInfoList) && Objects.equal(mIndex, that.mIndex) && Objects.equal(mInitialized, that.mInitialized) && Objects.equal(mBlockLocationCache, that.mBlockLocationCache); } RoundRobinPolicy(AlluxioConfiguration conf); }
RoundRobinPolicy implements BlockLocationPolicy { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof RoundRobinPolicy)) { return false; } RoundRobinPolicy that = (RoundRobinPolicy) o; return Objects.equal(mWorkerInfoList, that.mWorkerInfoList) && Objects.equal(mIndex, that.mIndex) && Objects.equal(mInitialized, that.mInitialized) && Objects.equal(mBlockLocationCache, that.mBlockLocationCache); } RoundRobinPolicy(AlluxioConfiguration conf); @Override @Nullable WorkerNetAddress getWorker(GetWorkerOptions options); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
RoundRobinPolicy implements BlockLocationPolicy { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof RoundRobinPolicy)) { return false; } RoundRobinPolicy that = (RoundRobinPolicy) o; return Objects.equal(mWorkerInfoList, that.mWorkerInfoList) && Objects.equal(mIndex, that.mIndex) && Objects.equal(mInitialized, that.mInitialized) && Objects.equal(mBlockLocationCache, that.mBlockLocationCache); } RoundRobinPolicy(AlluxioConfiguration conf); @Override @Nullable WorkerNetAddress getWorker(GetWorkerOptions options); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }