Class UnmodifiableRef<T>

java.lang.Object
alexiil.mc.lib.attributes.misc.UnmodifiableRef<T>
All Implemented Interfaces:
Reference<T>

public final class UnmodifiableRef<T>
extends java.lang.Object
implements Reference<T>
A Reference that may be obtained through get(), but never allows the value to be changed in set(Object).
  • Field Summary

    Fields 
    Modifier and Type Field Description
    T obj  
  • Constructor Summary

    Constructors 
    Constructor Description
    UnmodifiableRef​(T obj)  
  • Method Summary

    Modifier and Type Method Description
    T get()  
    boolean isValid​(T value)  
    boolean set​(T value)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface alexiil.mc.lib.attributes.misc.Reference

    asDestroyable, set