Skip to content
Snippets Groups Projects
Select Git revision
  • a2f20d1bc2adecab0cf770dddad9b6699ff47c60
  • main default protected
  • correction_video
  • going_further
  • ImprovedMouseInteraction
  • final2023
  • template
  • ModifGUI
8 results

StandardOutputSandbox.java

Blame
  • Forked from YAGOUBI Rim / Game of life Template
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Lens.java 513 B
    package datastruct;
    
    /**
     * A lens interface representing a view into a mutable state.
     *
     * @param <S> The type of the value stored in the lens.
     */
    public interface Lens<S> {
        /**
         * Gets the value from the {@link Lens}.
         *
         * @return The value stored in the place designated by {@link Lens}.
         */
        S get();
    
        /**
         * Sets a new value into the {@link Lens}.
         *
         * @param value The new value to set in the place designated by the {@link Lens}.
         */
        void set(S value);
    }