package net.openhft.chronicle.map; import java.io.Serializable; /** * Represents a mutator that accepts one mutable argument, which it may alter and produces a result. * *

This is not functional as it can alter an argument. * * @param the type of the mutable input * @param the type of the result of the mutator */ public interface Mutator extends Serializable { /** * Applies this mutator to the given mutable argument. * * @param t the mutator argument * @return the result */ R update(T t); }