@Override public DeformedSurface.Builder builder() { return new DeformedSurface.Builder(); }
/** * Obtains an instance. * * @param metadata the surface metadata * @param originalSurface the original surface * @param deformationFunction the deformation function * @return the surface */ public static DeformedSurface of( SurfaceMetadata metadata, Surface originalSurface, Function<DoublesPair, ValueDerivatives> deformationFunction) { return DeformedSurface.builder() .metadata(metadata) .originalSurface(originalSurface) .deformationFunction(deformationFunction) .build(); }
/** * Returns a builder that allows this bean to be mutated. * @return the mutable builder, not null */ public Builder toBuilder() { return new Builder(this); }
/** * Returns a builder used to create an instance of the bean. * @return the builder, not null */ public static DeformedSurface.Builder builder() { return new DeformedSurface.Builder(); }