Class Callback

java.lang.Object
com.github.fungal.impl.Callback

public class Callback extends Object
The data structure for callbacks
Author:
Jesper Pedersen
  • Constructor Details

    • Callback

      public Callback(Class<?> type, Method method, Object instance)
      Constructor
      Parameters:
      type - The registration type
      method - The method that should be invoked
      instance - The object instance where the method is located
  • Method Details

    • getType

      public Class<?> getType()
      Get the type
      Returns:
      The value
    • getMethod

      public Method getMethod()
      Get the method
      Returns:
      The value
    • getInstance

      public Object getInstance()
      Get the instance
      Returns:
      The value
    • hashCode

      public int hashCode()
      Hash code
      Overrides:
      hashCode in class Object
      Returns:
      The value
    • equals

      public boolean equals(Object obj)
      Equality
      Overrides:
      equals in class Object
      Parameters:
      obj - The other object
      Returns:
      True if equal; otherwise false
    • toString

      public String toString()
      String representation
      Overrides:
      toString in class Object
      Returns:
      The value