Interface ToResultCapable


public interface ToResultCapable
Marks an object that can be converted into a result.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> Result<T>
    Returns a result for the object.
  • Method Details

    • toResult

      <T> Result<T> toResult()
      Returns a result for the object.
      Type Parameters:
      T - Type of data.
      Returns:
      Object expressed as result.