Interface Mutator<T>

Type Parameters:
T - value type of mutator
All Superinterfaces:
ComponentProvider, ConfigurationSerializable, Copyable, Shiftable<T>, ValueProvider<T>

public interface Mutator<T> extends Shiftable<T>, ConfigurationSerializable, ComponentProvider, Copyable
Interface to implement a mutator to mutate a PasteMutation
  • Method Details

    • invoke

      void invoke(PasteMutation mutation)
      Invoke the mutator on a paste mutation. The mutation will be applied on the brush.
      Parameters:
      mutation - mutation
    • copy

      Mutator<T> copy()
      Description copied from interface: Copyable
      Returns a copy of the implementing object.

      The copy should be by value and should not contain any mutable references to other objects.

      Specified by:
      copy in interface Copyable
      Returns:
      a copy of the object instance