Class 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 Detail

      • ReadOnlyPropertyHandler

        public ReadOnlyPropertyHandler​(T obj)
    • Method Detail

      • set

        public boolean set​(T obj)
        This method does nothing. It simply returns false.
        Specified by:
        set in interface PropertyHandler<T>
        Parameters:
        obj - The object to set.
        Returns:
        Always returns false.
      • get

        public T get()
        Specified by:
        get in interface PropertyHandler<T>
        Returns:
        The object that was set. (Note that object might also be set in the constructor of an implementation class).