Class Content

    • Constructor Detail

      • Content

        public Content()
    • Method Detail

      • getId

        @Default
        public String getId()
        Unique id for this object.

        This id is unique for the entire lifetime of this Content object and persists across renames. Two content objects with the same key will have different id.

      • getType

        @Redacted
        public abstract Content.Type getType()
        Returns the Content.Type enum constant for this content object.

        The name of the returned enum value should match the JSON type name used for serializing the content object.

      • unwrap

        public <T> Optional<T> unwrap​(Class<T> clazz)
        Unwrap object if possible, otherwise throw.
        Type Parameters:
        T - Type to wrap to.
        Parameters:
        clazz - Class we're trying to return.
        Returns:
        The return value