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

com.blazebit.lang.ValueAccessor Maven / Gradle / Ivy

There is a newer version: 1.6.11
Show newest version
package com.blazebit.lang;

/**
 * ValueAccessor can be used to access a value of a target object in a stateless
 * manner. {@link ValueAccessor}s are immutable and the methods may throw
 * {@link RuntimeException}s.
 *
 * @param  The type of the target object from which to retrieve the value.
 * @param  The type of the value that is accessed.
 * @author Christian Beikov
 * @since 1.0
 */
public interface ValueAccessor extends ValueRetriever {

    /**
     * Sets the given value specified in the target object. An implementation
     * may throw {@link RuntimeException}s.
     *
     * @param target The target object on which to set the given value.
     * @param value  The new value of the target object.
     */
    public void setValue(X target, Y value);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy