All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sdl.dxa.api.datamodel.model.util.CanCopyValues Maven / Gradle / Ivy

Go to download

DXA Data Model artifact provides API for de-/serializing CM JSON content into a DXA model

There is a newer version: 2.3.7
Show newest version
package com.sdl.dxa.api.datamodel.model.util;

/**
 * Implementors of this interface can copy values from another instance to itself.
 */
@FunctionalInterface
public interface CanCopyValues {

    /**
     * Copies values from {@code other} to self. Should return self!
     *
     * @param other instance to copy values from
     * @return self populated with values from the given instance
     */
    T copyFrom(T other);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy