/** Compare this name with the specified object for equality. */ @Override public boolean equals(final Object object) { if (object instanceof AxisName) { final AxisName that = (AxisName) object; return Utilities.equals(this.name, that.name) && Utilities.equals(this.description, that.description); } return false; }
/** * Returns {@code true} if the two specified value are equals. Two {@link Double#NaN NaN} values * are considered equals. */ static boolean equals(final double value1, final double value2) { return Utilities.equals(value1, value2); }
@Override public boolean equals(Object that) { if (that == this) return true; if (!(that instanceof PixelScale)) return false; final PixelScale thatO = (PixelScale) that; if (Utilities.equals(this.scaleX, thatO.scaleX) && Utilities.equals(this.scaleY, thatO.scaleY) && Utilities.equals(this.scaleZ, thatO.scaleZ)) return true; return false; }
/** Compares this mapped position with the specified object for equality. */ public boolean equals(final Object object) { if (object != null && object.getClass().equals(getClass())) { final MappedPosition that = (MappedPosition) object; return Utilities.equals(this.source, that.source) && Utilities.equals(this.target, that.target) && Utilities.equals(this.comments, that.comments) && Utilities.equals(this.accuracy, that.accuracy); } return false; }
/** Compares this international string with the specified object for equality. */ @Override public boolean equals(final Object object) { if (object != null && object.getClass().equals(getClass())) { final ImagingParameterDescription that = (ImagingParameterDescription) object; return Utilities.equals(this.key, that.key) && Utilities.equals(this.prefixKey, that.prefixKey) && Utilities.equals(this.operation, that.operation); } return false; }
@Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultCalendar && super.equals(object)) { final DefaultCalendar that = (DefaultCalendar) object; return Utilities.equals(this.basis, that.basis) && Utilities.equals(this.timeBasis, that.timeBasis); } return false; }
@Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultCalendarDate && super.equals(object)) { final DefaultCalendarDate that = (DefaultCalendarDate) object; return Utilities.equals(this.calendarDate, that.calendarDate) && Utilities.equals(this.calendarEraName, that.calendarEraName); } return false; }
/** * Ensures that this collection contains the specified object. This set do not allows multiple * objects for the same {@linkplain #getAuthorityCode authority code}. If this set already * contains an object using the same {@linkplain #getAuthorityCode authority code} than the * specified one, then the old object is replaced by the new one even if the objects are not * otherwise identical. */ public boolean add(final Object object) { final String code = getAuthorityCode((IdentifiedObject) object); return !Utilities.equals(objects.put(code, object), object); }
/** Compares this transform with the specified object for equality. */ @Override public boolean equals(final Object object) { if (super.equals(object)) { final WarpTransform2D that = (WarpTransform2D) object; return Utilities.equals(this.warp, that.warp); } return false; }
@Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultTemporalCoordinate && super.equals(object)) { final DefaultTemporalCoordinate that = (DefaultTemporalCoordinate) object; return Utilities.equals(this.coordinateValue, that.coordinateValue); } return false; }
@Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultOrdinalPosition && super.equals(object)) { final DefaultOrdinalPosition that = (DefaultOrdinalPosition) object; return Utilities.equals(this.ordinalPosition, that.ordinalPosition); } return false; }
/** Compares this member name with the associated object for equality. */ @Override public boolean equals(final Object object) { if (super.equals(object)) { final MemberNameImpl that = (MemberNameImpl) object; return Utilities.equals(this.typeName, that.typeName); } return false; }
/** Equals override, equality is based solely on {@link #getNamespaceURI()}. */ public final boolean equals(Object obj) { if (obj instanceof Configuration) { Configuration other = (Configuration) obj; return Utilities.equals(getNamespaceURI(), other.getNamespaceURI()); } return false; }
public void testRasterSymbolizerWithUOM() throws Exception { RasterSymbolizer rasterSymb = sf.createRasterSymbolizer(); rasterSymb.setUnitOfMeasure(UomOgcMapping.FOOT.getUnit()); rasterSymb.accept(visitor); RasterSymbolizer clone = (RasterSymbolizer) visitor.getCopy(); assertEquals(clone.getUnitOfMeasure(), rasterSymb.getUnitOfMeasure()); RasterSymbolizer notEq = sf.createRasterSymbolizer(); assertFalse(Utilities.equals(notEq.getUnitOfMeasure(), rasterSymb.getUnitOfMeasure())); }