@Test public void testEquals() { EstimateSpec expected = new EstimateSpec(); EstimateSpec actual = new EstimateSpec(); assertEquals(expected, actual); expected.setEML(false); assertNotEquals(expected, actual); actual.setEML(false); assertEquals(expected, actual); expected.setTol(1e-4); assertNotEquals(expected, actual); actual.setTol(1e-4); assertEquals(expected, actual); expected.setUbp(1.0); assertNotEquals(expected, actual); actual.setUbp(1.0); assertEquals(expected, actual); }
@Override public boolean equals(Object obj) { return this == obj || (obj instanceof EstimateSpec && equals((EstimateSpec) obj)); }
EstimateSpec implements Cloneable, InformationSetSerializable { @Override public boolean equals(Object obj) { return this == obj || (obj instanceof EstimateSpec && equals((EstimateSpec) obj)); } }
EstimateSpec implements Cloneable, InformationSetSerializable { @Override public boolean equals(Object obj) { return this == obj || (obj instanceof EstimateSpec && equals((EstimateSpec) obj)); } EstimateSpec(); }
EstimateSpec implements Cloneable, InformationSetSerializable { @Override public boolean equals(Object obj) { return this == obj || (obj instanceof EstimateSpec && equals((EstimateSpec) obj)); } EstimateSpec(); static void fillDictionary(String prefix, Map<String, Class> dic); void reset(); TsPeriodSelector getSpan(); void setSpan(TsPeriodSelector span); boolean isEML(); void setEML(boolean value); double getTol(); void setTol(double value); double getUbp(); void setUbp(double value); boolean isDefault(); @Override EstimateSpec clone(); @Override int hashCode(); @Override boolean equals(Object obj); @Override InformationSet write(boolean verbose); @Override boolean read(InformationSet info); }
EstimateSpec implements Cloneable, InformationSetSerializable { @Override public boolean equals(Object obj) { return this == obj || (obj instanceof EstimateSpec && equals((EstimateSpec) obj)); } EstimateSpec(); static void fillDictionary(String prefix, Map<String, Class> dic); void reset(); TsPeriodSelector getSpan(); void setSpan(TsPeriodSelector span); boolean isEML(); void setEML(boolean value); double getTol(); void setTol(double value); double getUbp(); void setUbp(double value); boolean isDefault(); @Override EstimateSpec clone(); @Override int hashCode(); @Override boolean equals(Object obj); @Override InformationSet write(boolean verbose); @Override boolean read(InformationSet info); static final String SPAN; static final double DEF_TOL; }