/** * Creates an immutable copy of a {@link SMFCoordinateSystemType} 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 SMFCoordinateSystem instance */ public static SMFCoordinateSystem copyOf(SMFCoordinateSystemType instance) { if (instance instanceof SMFCoordinateSystem) { return (SMFCoordinateSystem) instance; } return SMFCoordinateSystem.builder() .from(instance) .build(); }
/** * Creates an immutable copy of a {@link SMFCoordinateSystemType} 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 SMFCoordinateSystem instance */ public static SMFCoordinateSystem copyOf(SMFCoordinateSystemType instance) { if (instance instanceof SMFCoordinateSystem) { return (SMFCoordinateSystem) instance; } return SMFCoordinateSystem.builder() .from(instance) .build(); }
/** * @return The coordinate system of the mesh data */ @Value.Default @Value.Parameter default SMFCoordinateSystem coordinateSystem() { return SMFCoordinateSystem.builder().build(); }