/** * Writes the value expressed as a {@code distanceDisplayCondition}, which is the value specified as two values {@code [NearDistance, FarDistance]}, with distances in meters. * @param lowerBound The lower bound. * @param upperBound The upper bound. */ public final void writeDistanceDisplayCondition(double lowerBound, double upperBound) { writeDistanceDisplayCondition(new Bounds(lowerBound, upperBound)); }
/** * Indicates whether another object is exactly equal to this instance. * @param obj The object to compare to this instance. * @return {@code true} if {@code obj} is an instance of this type and represents the same value as this instance; otherwise, {@code false}. */ @Override public boolean equals(Object obj) { return obj instanceof Bounds && equalsType((Bounds) obj); }
/** * Writes a {@link Bounds} value as an array in LowerBound, UpperBound order. * @param output The stream to which to write the value. * @param value The value to write. */ public static void writeBounds(CesiumOutputStream output, @Nonnull Bounds value) { output.writeStartSequence(); output.writeValue(value.getLowerBound()); output.writeValue(value.getUpperBound()); output.writeEndSequence(); }
output.writeValue(epoch.secondsDifference(dates.get(i))); Bounds value = values.get(i); output.writeValue(value.getLowerBound()); output.writeValue(value.getUpperBound()); output.writeLineBreak();
/** * Returns {@code true} if the two instances are not exactly equal. * @param left The instance to compare to {@code right}. * @param right The instance to compare to {@code left}. * @return {@code true} if {@code left} does not represent the same value as {@code right}; otherwise, {@code false}. */ @CS2JInfo("This method implements the functionality of the overloaded operator: 'System.Boolean !=(Bounds,Bounds)'") public static boolean notEquals(@Nonnull Bounds left, @Nonnull Bounds right) { return !left.equalsType(right); }
/** * Returns {@code true} if the two instances are exactly equal. * @param left The instance to compare to {@code right}. * @param right The instance to compare to {@code left}. * @return {@code true} if {@code left} represents the same value as {@code right}; otherwise, {@code false}. */ @CS2JInfo("This method implements the functionality of the overloaded operator: 'System.Boolean ==(Bounds,Bounds)'") public static boolean equals(@Nonnull Bounds left, @Nonnull Bounds right) { return left.equalsType(right); }