@Test public void equalsTest() throws Exception { new EqualsTester() .addEqualityGroup( new LocalFirstAvoidEvictionPolicy(mConf), new LocalFirstAvoidEvictionPolicy(mConf)) .testEquals(); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof LocalFirstAvoidEvictionPolicy)) { return false; } LocalFirstAvoidEvictionPolicy that = (LocalFirstAvoidEvictionPolicy) o; return Objects.equal(mPolicy, that.mPolicy) && Objects.equal(mBlockCapacityReserved, that.mBlockCapacityReserved); }
LocalFirstAvoidEvictionPolicy implements BlockLocationPolicy { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof LocalFirstAvoidEvictionPolicy)) { return false; } LocalFirstAvoidEvictionPolicy that = (LocalFirstAvoidEvictionPolicy) o; return Objects.equal(mPolicy, that.mPolicy) && Objects.equal(mBlockCapacityReserved, that.mBlockCapacityReserved); } }
LocalFirstAvoidEvictionPolicy implements BlockLocationPolicy { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof LocalFirstAvoidEvictionPolicy)) { return false; } LocalFirstAvoidEvictionPolicy that = (LocalFirstAvoidEvictionPolicy) o; return Objects.equal(mPolicy, that.mPolicy) && Objects.equal(mBlockCapacityReserved, that.mBlockCapacityReserved); } LocalFirstAvoidEvictionPolicy(AlluxioConfiguration conf);   LocalFirstAvoidEvictionPolicy(long blockCapacityReserved,
      AlluxioConfiguration conf); @VisibleForTesting  LocalFirstAvoidEvictionPolicy(long blockCapacityReserved, TieredIdentity identity,
      AlluxioConfiguration conf); }
LocalFirstAvoidEvictionPolicy implements BlockLocationPolicy { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof LocalFirstAvoidEvictionPolicy)) { return false; } LocalFirstAvoidEvictionPolicy that = (LocalFirstAvoidEvictionPolicy) o; return Objects.equal(mPolicy, that.mPolicy) && Objects.equal(mBlockCapacityReserved, that.mBlockCapacityReserved); } LocalFirstAvoidEvictionPolicy(AlluxioConfiguration conf);   LocalFirstAvoidEvictionPolicy(long blockCapacityReserved,
      AlluxioConfiguration conf); @VisibleForTesting  LocalFirstAvoidEvictionPolicy(long blockCapacityReserved, TieredIdentity identity,
      AlluxioConfiguration conf); @Override WorkerNetAddress getWorker(GetWorkerOptions options); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
LocalFirstAvoidEvictionPolicy implements BlockLocationPolicy { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof LocalFirstAvoidEvictionPolicy)) { return false; } LocalFirstAvoidEvictionPolicy that = (LocalFirstAvoidEvictionPolicy) o; return Objects.equal(mPolicy, that.mPolicy) && Objects.equal(mBlockCapacityReserved, that.mBlockCapacityReserved); } LocalFirstAvoidEvictionPolicy(AlluxioConfiguration conf);   LocalFirstAvoidEvictionPolicy(long blockCapacityReserved,
      AlluxioConfiguration conf); @VisibleForTesting  LocalFirstAvoidEvictionPolicy(long blockCapacityReserved, TieredIdentity identity,
      AlluxioConfiguration conf); @Override WorkerNetAddress getWorker(GetWorkerOptions options); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }