Package jadex.commons

Class MutableObject<T>


  • public class MutableObject<T>
    extends java.lang.Object
    Encapsulates an Object to make it mutable for anonymous classes and lambdas.
    • Constructor Summary

      Constructors 
      Constructor Description
      MutableObject​(T mutable)
      Creates a new MutableObject
    • Constructor Detail

      • MutableObject

        public MutableObject​(T mutable)
        Creates a new MutableObject
        Parameters:
        mutable -
    • Method Detail

      • create

        public static <T> MutableObject<T> create​(T mutable)
        Creates a new MutableObject
        Parameters:
        mutable -
      • set

        public void set​(T mutableObject)
      • get

        public T get()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object