Class ReadOnlyModel<T>

  • Type Parameters:
    T -
    All Implemented Interfaces:
    Serializable, org.apache.wicket.model.IDetachable, org.apache.wicket.model.IModel<T>, org.apache.wicket.util.io.IClusterable

    @Deprecated
    public class ReadOnlyModel<T>
    extends Object
    implements org.apache.wicket.model.IModel<T>
    Deprecated.
    use pure lambda eg. not new ReadOnlyModel(() -> xxx) but () -> xxx
    See Also:
    Serialized Form
    • Constructor Detail

      • ReadOnlyModel

        public ReadOnlyModel​(@NotNull
                             @NotNull SerializableSupplier<T> objectSupplier)
        Deprecated.
    • Method Detail

      • getObject

        public T getObject()
        Deprecated.
        Specified by:
        getObject in interface org.apache.wicket.model.IModel<T>