Class TypedResult<T>

    • Constructor Detail

      • TypedResult

        public TypedResult​(String identifier,
                           String name,
                           String description,
                           ContentType<T> contentType,
                           Class<T> clazz)
        Creates an object describing a singular typed result value with all needed information.
        Parameters:
        identifier - result identifier
        name - result name
        description - a longer description of the result
        contentType - a contentType that can parse and format values
        clazz - the class of the typed result
    • Method Detail

      • getResultClass

        public Class<T> getResultClass()
      • getIdentifier

        public String getIdentifier()
        Returns:
        result identifier
      • getName

        public String getName()
        Returns:
        result name
      • getDescription

        public String getDescription()
        Returns:
        result description
      • getPersister

        public ContentType<T> getPersister()
        Get the ContentType for the result.
        Returns:
        value contentType
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object