
com.sdl.dxa.api.datamodel.model.util.CanCopyValues Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dxa-data-model Show documentation
Show all versions of dxa-data-model Show documentation
DXA Data Model artifact provides API for de-/serializing CM JSON content into a DXA model
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