Interface ViewProvider<T>

Type Parameters:
T - The type being viewed.
All Known Subinterfaces:
Localizer, Skript, SkriptAddon, SyntaxRegistry
All Known Implementing Classes:
SkriptAddon

@Experimental public interface ViewProvider<T>
For objects that can provide an unmodifiable view of themselves. An unmodifiable view means that the object may only be used in a read-only manner (its values may not be changed). Since it is a view, it will reflect any changes made to the object it was created from.
  • Method Summary

    Modifier and Type
    Method
    Description
    Constructs an unmodifiable view of this.
  • Method Details

    • unmodifiableView

      @Contract("-> new") T unmodifiableView()
      Constructs an unmodifiable view of this.
      Returns:
      An unmodifiable view of this.