Package react4j

Interface Keyed


public interface Keyed
Interface implemented by objects so that they can be marked as Input.immutable()
  • Method Summary

    Modifier and Type
    Method
    Description
    Return a string that will be the key or contribute to the key of a view.
    static String
    getKey(Object object)
    Invoked getKey() on specified parameter if the parameter implements Keyed otherwise return null.
  • Method Details

    • getKey

      @Nonnull String getKey()
      Return a string that will be the key or contribute to the key of a view.
      Returns:
      the value used to form key.
    • getKey

      @Nullable static String getKey(@Nullable Object object)
      Invoked getKey() on specified parameter if the parameter implements Keyed otherwise return null.
      Parameters:
      object - the object on which to call getKey().
      Returns:
      the value used to form key, else null.