/** * Creates a builder for {@link RangeInclusiveI RangeInclusiveI}. * @return A new RangeInclusiveI builder */ public static RangeInclusiveI.Builder builder() { return new RangeInclusiveI.Builder(); }
/** * This instance is equal to all instances of {@code RangeInclusiveL} that have equal attribute values. * @return {@code true} if {@code this} is equal to {@code another} instance */ @Override public boolean equals(Object another) { if (this == another) return true; return another instanceof RangeInclusiveL && equalTo((RangeInclusiveL) another); }
/** * This instance is equal to all instances of {@code RangeInclusiveB} that have equal attribute values. * @return {@code true} if {@code this} is equal to {@code another} instance */ @Override public boolean equals(Object another) { if (this == another) return true; return another instanceof RangeInclusiveB && equalTo((RangeInclusiveB) another); }
@Override public void integratorLinearTargetSetDrag( final float f) { this.target_drag = (float) RangeCheck.checkGreaterEqualDouble( RangeCheck .checkLessEqualDouble((double) f, "Drag factor", 1.0, "Maximum drag"), "Drag factor", 0.0, "Minimum drag"); }
@Override public void integratorAngularSetMaximumSpeedHorizontal( final float s) { this.maximum_speed_horizontal = (float) RangeCheck.checkGreaterEqualDouble( (double) s, "Speed limit", 0.0, "Minimum limit"); }
FakeTextureUnit( final FakeContext in_context, final int in_index) { super(in_context); this.index = RangeCheck.checkIncludedInInteger( in_index, "Index", Ranges.NATURAL_INTEGER, "Valid indices"); }
@Override public void setRotationHorizontalFactor( final double f) { this.rotate_horizontal_factor = RangeCheck.checkGreaterDouble( f, "Factor", 0.0, "Minimum factor"); }
/** * Construct a new immutable {@code RangeInclusiveD} instance. * @param lower The value for the {@code lower} attribute * @param upper The value for the {@code upper} attribute * @return An immutable RangeInclusiveD instance */ public static RangeInclusiveD of(double lower, double upper) { return validate(new RangeInclusiveD(lower, upper)); }
private RangeInclusiveI(int lower, int upper) { this.lower = lower; this.upper = upper; this.interval = RangeInclusiveIType.super.interval(); }
/** * Creates a builder for {@link RangeInclusiveD RangeInclusiveD}. * @return A new RangeInclusiveD builder */ public static RangeInclusiveD.Builder builder() { return new RangeInclusiveD.Builder(); }
/** * Creates a builder for {@link RangeInclusiveB RangeInclusiveB}. * @return A new RangeInclusiveB builder */ public static RangeInclusiveB.Builder builder() { return new RangeInclusiveB.Builder(); }
@Override public void integratorAngularOrbitHeadingSetDrag( final float d) { this.drag_heading = (float) RangeCheck.checkGreaterEqualDouble( RangeCheck .checkLessEqualDouble((double) d, "Drag factor", 1.0, "Maximum drag"), "Drag factor", 0.0, "Minimum drag"); }
@Override public void integratorLinearSetMaximumSpeed( final float s) { this.maximum_speed = (float) RangeCheck.checkGreaterEqualDouble( (double) s, "Speed limit", 0.0, "Minimum limit"); } }
@Override public void integratorLinearSetAcceleration( final double a) { this.acceleration = RangeCheck.checkGreaterDouble( a, "Acceleration", 0.0, "Minimum acceleration"); }
@Override public void integratorLinearTargetSetDrag( final double f) { this.target_drag = RangeCheck.checkGreaterEqualDouble( RangeCheck .checkLessEqualDouble(f, "Drag factor", 1.0, "Maximum drag"), "Drag factor", 0.0, "Minimum drag"); }
@Override public void integratorAngularOrbitHeadingSetMaximumSpeed( final double s) { this.maximum_speed_heading = RangeCheck.checkGreaterEqualDouble( s, "Speed limit", 0.0, "Minimum limit"); }
@Override public void integratorLinearTargetSetAcceleration( final double a) { this.target_acceleration = RangeCheck.checkGreaterDouble( a, "Acceleration", 0.0, "Minimum acceleration"); }
@Override public void integratorLinearZoomSetDrag( final double f) { this.zoom_drag = RangeCheck.checkGreaterEqualDouble( RangeCheck .checkLessEqualDouble(f, "Drag factor", 1.0, "Maximum drag"), "Drag factor", 0.0, "Minimum drag"); }
@Override public void integratorLinearTargetSetMaximumSpeed( final double s) { this.target_maximum_speed = RangeCheck.checkGreaterEqualDouble( s, "Speed limit", 0.0, "Minimum limit"); }
@Override public void integratorLinearTargetSetMaximumSpeed( final double s) { this.target_maximum_speed = RangeCheck.checkGreaterEqualDouble( s, "Speed limit", 0.0, "Minimum limit"); }