Package com.applitools.utils
Class ReadOnlyPropertyHandler<T>
- java.lang.Object
-
- com.applitools.utils.ReadOnlyPropertyHandler<T>
-
- All Implemented Interfaces:
PropertyHandler<T>
public class ReadOnlyPropertyHandler<T> extends Object implements PropertyHandler<T>
A property handler for read-only properties (i.e., set always fails).
-
-
Constructor Summary
Constructors Constructor Description ReadOnlyPropertyHandler(T obj)
-
-
-
Constructor Detail
-
ReadOnlyPropertyHandler
public ReadOnlyPropertyHandler(T obj)
-
-
Method Detail
-
set
public boolean set(T obj)
This method does nothing. It simply returns false.- Specified by:
setin interfacePropertyHandler<T>- Parameters:
obj- The object to set.- Returns:
- Always returns false.
-
get
public T get()
- Specified by:
getin interfacePropertyHandler<T>- Returns:
- The object that was set. (Note that object might also be set in the constructor of an implementation class).
-
-