@Test public void testEquals() { new EqualsTester() .addEqualityGroup(new Result(), new Result()) .addEqualityGroup(new Result(true, false, false, false)) .addEqualityGroup(new Result(false, true, false, false)) .addEqualityGroup(new Result(false, false, true, false)) .addEqualityGroup(new Result(false, false, false, true)) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof Result)) { return false; } Result result = (Result) o; return _booleanValue == result._booleanValue && _exit == result._exit && _fallThrough == result._fallThrough && _return == result._return; }
Result { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof Result)) { return false; } Result result = (Result) o; return _booleanValue == result._booleanValue && _exit == result._exit && _fallThrough == result._fallThrough && _return == result._return; } }
Result { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof Result)) { return false; } Result result = (Result) o; return _booleanValue == result._booleanValue && _exit == result._exit && _fallThrough == result._fallThrough && _return == result._return; } Result();  Result(boolean booleanValue);  Result(boolean booleanValue, boolean exit, boolean fallThrough, boolean aReturn); }
Result { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof Result)) { return false; } Result result = (Result) o; return _booleanValue == result._booleanValue && _exit == result._exit && _fallThrough == result._fallThrough && _return == result._return; } Result();  Result(boolean booleanValue);  Result(boolean booleanValue, boolean exit, boolean fallThrough, boolean aReturn); boolean getBooleanValue(); boolean getExit(); boolean getFallThrough(); boolean getReturn(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString(); Builder toBuilder(); static Builder builder(); }
Result { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof Result)) { return false; } Result result = (Result) o; return _booleanValue == result._booleanValue && _exit == result._exit && _fallThrough == result._fallThrough && _return == result._return; } Result();  Result(boolean booleanValue);  Result(boolean booleanValue, boolean exit, boolean fallThrough, boolean aReturn); boolean getBooleanValue(); boolean getExit(); boolean getFallThrough(); boolean getReturn(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString(); Builder toBuilder(); static Builder builder();  }