@Test public void testEquals() { assertEquals(LifecycleConfiguration.empty(), new LifecycleConfiguration()); assertEquals(new LifecycleConfiguration(1, "GLACIER", 1), new LifecycleConfiguration(1, "GLACIER", 1)); assertEquals(new LifecycleConfiguration(1, "GLACIER", 2), new LifecycleConfiguration(1, "GLACIER", 2)); assertNotEquals(new LifecycleConfiguration(1, "GLACIER", 2), new LifecycleConfiguration(2, "GLACIER", 1)); }
@Override public boolean equals(final Object o) { if(this == o) { return true; } if(o == null || getClass() != o.getClass()) { return false; } final LifecycleConfiguration that = (LifecycleConfiguration) o; if(!Objects.equals(expiration, that.expiration)) { return false; } if(!Objects.equals(transition, that.transition)) { return false; } return true; }
LifecycleConfiguration { @Override public boolean equals(final Object o) { if(this == o) { return true; } if(o == null || getClass() != o.getClass()) { return false; } final LifecycleConfiguration that = (LifecycleConfiguration) o; if(!Objects.equals(expiration, that.expiration)) { return false; } if(!Objects.equals(transition, that.transition)) { return false; } return true; } }
LifecycleConfiguration { @Override public boolean equals(final Object o) { if(this == o) { return true; } if(o == null || getClass() != o.getClass()) { return false; } final LifecycleConfiguration that = (LifecycleConfiguration) o; if(!Objects.equals(expiration, that.expiration)) { return false; } if(!Objects.equals(transition, that.transition)) { return false; } return true; } LifecycleConfiguration();  LifecycleConfiguration(final Integer transition, final String storageClass, final Integer expiration); }
LifecycleConfiguration { @Override public boolean equals(final Object o) { if(this == o) { return true; } if(o == null || getClass() != o.getClass()) { return false; } final LifecycleConfiguration that = (LifecycleConfiguration) o; if(!Objects.equals(expiration, that.expiration)) { return false; } if(!Objects.equals(transition, that.transition)) { return false; } return true; } LifecycleConfiguration();  LifecycleConfiguration(final Integer transition, final String storageClass, final Integer expiration); static LifecycleConfiguration empty(); Integer getTransition(); Integer getExpiration(); String getStorageClass(); @Override boolean equals(final Object o); @Override int hashCode(); }
LifecycleConfiguration { @Override public boolean equals(final Object o) { if(this == o) { return true; } if(o == null || getClass() != o.getClass()) { return false; } final LifecycleConfiguration that = (LifecycleConfiguration) o; if(!Objects.equals(expiration, that.expiration)) { return false; } if(!Objects.equals(transition, that.transition)) { return false; } return true; } LifecycleConfiguration();  LifecycleConfiguration(final Integer transition, final String storageClass, final Integer expiration); static LifecycleConfiguration empty(); Integer getTransition(); Integer getExpiration(); String getStorageClass(); @Override boolean equals(final Object o); @Override int hashCode();  }