S- the HasContentId type that this type can convert to
public interface ToContentAddressable<S extends HasContentId> extends HasCidScheme
HasContentIdmay implement this interface to convert to something content addressable. Classes that do implement
HasContentIdmay implement this interface (with
return this;) to be compatible with methods that can take anything content addressable or convertible to such. If you're implementing a class and do not want to implement
HasCidScheme, look at
ConvertsToContentAddressablewhich is like this, but takes a content id scheme as an argument.