private boolean equalTo(JCGLClearSpecificationMutable another) { boolean strictChecking = strictChecking(); return Objects.equals(colorBufferClear, another.colorBufferClear) && Objects.equals(depthBufferClear, another.depthBufferClear) && Objects.equals(stencilBufferClear, another.stencilBufferClear) && strictChecking == another.strictChecking(); }
/** * Computes a hash code from attributes: {@code colorBufferClear}, {@code depthBufferClear}, {@code stencilBufferClear}, {@code strictChecking}. * @return hashCode value */ @Override public int hashCode() { int h = 5381; h += (h << 5) + colorBufferClear.hashCode(); h += (h << 5) + depthBufferClear.hashCode(); h += (h << 5) + stencilBufferClear.hashCode(); boolean strictChecking = strictChecking(); h += (h << 5) + Boolean.hashCode(strictChecking); return h; }
/** * 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() + "}"; } }