/** * Construct a modifiable instance of {@code JCGLClearSpecificationType}. * @param colorBufferClear The value for the {@link JCGLClearSpecificationType#getColorBufferClear() colorBufferClear} attribute * @param depthBufferClear The value for the {@link JCGLClearSpecificationType#getDepthBufferClear() depthBufferClear} attribute * @param stencilBufferClear The value for the {@link JCGLClearSpecificationType#getStencilBufferClear() stencilBufferClear} attribute * @param strictChecking The value for the {@link JCGLClearSpecificationType#getStrictChecking() strictChecking} attribute * @return A new modifiable instance */ public static JCGLClearSpecificationMutable create(Optional<VectorReadable4FType> colorBufferClear, OptionalDouble depthBufferClear, OptionalInt stencilBufferClear, boolean strictChecking) { return new JCGLClearSpecificationMutable() .setColorBufferClear(colorBufferClear) .setDepthBufferClear(depthBufferClear) .setStencilBufferClear(stencilBufferClear) .setStrictChecking(strictChecking); }
/** * This instance is equal to all instances of {@code JCGLClearSpecificationMutable} 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; if (!(another instanceof JCGLClearSpecificationMutable)) return false; JCGLClearSpecificationMutable other = (JCGLClearSpecificationMutable) another; return equalTo(other); }
/** * Generates a string representation of this {@code JCGLClearSpecificationType}. * If uninitialized, some attribute values may appear as question marks. * @return A string representation */ @Override public String toString() { return "JCGLClearSpecificationMutable{" + "colorBufferClear=" + colorBufferClear() + ", depthBufferClear=" + depthBufferClear() + ", stencilBufferClear=" + stencilBufferClear() + ", strictChecking=" + strictChecking() + "}"; } }
/** * Generates a string representation of this {@code JCGLClearSpecificationType}. * If uninitialized, some attribute values may appear as question marks. * @return A string representation */ @Override public String toString() { return "JCGLClearSpecificationMutable{" + "colorBufferClear=" + getColorBufferClear() + ", depthBufferClear=" + getDepthBufferClear() + ", stencilBufferClear=" + getStencilBufferClear() + ", strictChecking=" + getStrictChecking() + "}"; } }
/** * Construct a modifiable instance of {@code JCGLClearSpecificationType}. * @return A new modifiable instance */ public static JCGLClearSpecificationMutable create() { return new JCGLClearSpecificationMutable(); }
/** * @return {@code true} if strict buffer checking is enabled */ @Override public final boolean getStrictChecking() { return strictCheckingIsSet() ? strictChecking : JCGLClearSpecificationType.super.getStrictChecking(); }
/** * Construct a modifiable instance of {@code JCGLClearSpecificationType}. * @return A new modifiable instance */ public static JCGLClearSpecificationMutable create() { return new JCGLClearSpecificationMutable(); }
/** * @return {@code true} if strict buffer checking is enabled */ @Override public final boolean strictChecking() { return strictCheckingIsSet() ? strictChecking : JCGLClearSpecificationType.super.strictChecking(); }
/** * Construct a modifiable instance of {@code JCGLClearSpecificationType}. * @param colorBufferClear The value for the {@link JCGLClearSpecificationType#colorBufferClear() colorBufferClear} attribute * @param depthBufferClear The value for the {@link JCGLClearSpecificationType#depthBufferClear() depthBufferClear} attribute * @param stencilBufferClear The value for the {@link JCGLClearSpecificationType#stencilBufferClear() stencilBufferClear} attribute * @param strictChecking The value for the {@link JCGLClearSpecificationType#strictChecking() strictChecking} attribute * @return A new modifiable instance */ public static JCGLClearSpecificationMutable create(Optional<Vector4D> colorBufferClear, OptionalDouble depthBufferClear, OptionalInt stencilBufferClear, boolean strictChecking) { return new JCGLClearSpecificationMutable() .setColorBufferClear(colorBufferClear) .setDepthBufferClear(depthBufferClear) .setStencilBufferClear(stencilBufferClear) .setStrictChecking(strictChecking); }
/** * This instance is equal to all instances of {@code JCGLClearSpecificationMutable} 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; if (!(another instanceof JCGLClearSpecificationMutable)) return false; JCGLClearSpecificationMutable other = (JCGLClearSpecificationMutable) another; return equalTo(other); }
/** * Fill this modifiable instance with attribute values from the provided {@link JCGLClearSpecificationType} instance. * Regular attribute values will be overridden, i.e. replaced with ones of an instance. * Any of the instance's absent optional values will not be copied (will not override current values). * @param instance The instance from which to copy values * @return {@code this} for use in a chained invocation */ public JCGLClearSpecificationMutable from(JCGLClearSpecificationType instance) { Objects.requireNonNull(instance, "instance"); Optional<VectorReadable4FType> colorBufferClearOptional = instance.getColorBufferClear(); if (colorBufferClearOptional.isPresent()) { setColorBufferClear(colorBufferClearOptional); } OptionalDouble depthBufferClearOptional = instance.getDepthBufferClear(); if (depthBufferClearOptional.isPresent()) { setDepthBufferClear(depthBufferClearOptional); } OptionalInt stencilBufferClearOptional = instance.getStencilBufferClear(); if (stencilBufferClearOptional.isPresent()) { setStencilBufferClear(stencilBufferClearOptional); } setStrictChecking(instance.getStrictChecking()); return this; }
/** * Fill this modifiable instance with attribute values from the provided {@link JCGLClearSpecificationType} instance. * Regular attribute values will be overridden, i.e. replaced with ones of an instance. * Any of the instance's absent optional values will not be copied (will not override current values). * @param instance The instance from which to copy values * @return {@code this} for use in a chained invocation */ public JCGLClearSpecificationMutable from(JCGLClearSpecificationType instance) { Objects.requireNonNull(instance, "instance"); Optional<Vector4D> colorBufferClearOptional = instance.colorBufferClear(); if (colorBufferClearOptional.isPresent()) { setColorBufferClear(colorBufferClearOptional); } OptionalDouble depthBufferClearOptional = instance.depthBufferClear(); if (depthBufferClearOptional.isPresent()) { setDepthBufferClear(depthBufferClearOptional); } OptionalInt stencilBufferClearOptional = instance.stencilBufferClear(); if (stencilBufferClearOptional.isPresent()) { setStencilBufferClear(stencilBufferClearOptional); } setStrictChecking(instance.strictChecking()); return this; }