com.rits.cloning.ICloningStrategy Maven / Gradle / Ivy
package com.rits.cloning;
import java.lang.reflect.Field;
public interface ICloningStrategy {
enum Strategy {
NULL_INSTEAD_OF_CLONE, // return null instead of a clone
SAME_INSTANCE_INSTEAD_OF_CLONE, // return same instance instead of a clone
IGNORE // ignore this strategy for this instance
}
Strategy strategyFor(Object toBeCloned, Field field);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy