/** * Creates an immutable copy of a {@link RangeInclusiveDType} value. * Uses accessors to get values to initialize the new immutable instance. * If an instance is already immutable, it is returned as is. * @param instance The instance to copy * @return A copied immutable RangeInclusiveD instance */ public static RangeInclusiveD copyOf(RangeInclusiveDType instance) { if (instance instanceof RangeInclusiveD) { return (RangeInclusiveD) instance; } return RangeInclusiveD.builder() .from(instance) .build(); }