/** * Creates an immutable copy of a {@link RangeInclusiveIType} 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 RangeInclusiveI instance */ public static RangeInclusiveI copyOf(RangeInclusiveIType instance) { if (instance instanceof RangeInclusiveI) { return (RangeInclusiveI) instance; } return RangeInclusiveI.builder() .from(instance) .build(); }