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