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

com.applitools.utils.PropertyHandler Maven / Gradle / Ivy

There is a newer version: 5.76.0
Show newest version
package com.applitools.utils;

/**
 * Encapsulates getter/setter behavior. (e.g., set only once etc.).
 */
public interface PropertyHandler {
    /**
     *
     * @param obj The object to set.
     * @return {@code true} if the object was set, {@code false} otherwise.
     */
    boolean set(T obj);

    /**
     *
     * @return The object that was set. (Note that object might also be set
     * in the constructor of an implementation class).
     */
    T get();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy