-
- All Implemented Interfaces:
public final class LinkKt
-
-
Field Summary
Fields Modifier and Type Field Description private final static Function1<String, String>LinkHrefNormalizerIdentityprivate final static BooleanallAreBitmapprivate final static BooleanallAreAudioprivate final static BooleanallAreVideoprivate final static BooleanallAreHtml
-
Method Summary
Modifier and Type Method Description final Function1<String, String>getLinkHrefNormalizerIdentity()Default href normalizer for Link, doing nothing. final BooleangetAllAreBitmap()final BooleangetAllAreAudio()final BooleangetAllAreVideo()final BooleangetAllAreHtml()final static IntegerindexOfFirstWithHref(List<Link> $self, String href)Returns the first Link with the given href, or null if not found. final static LinkfirstWithHref(List<Link> $self, String href)Finds the first link matching the given HREF. final static LinkfirstWithRel(List<Link> $self, String rel)Finds the first link with the given relation. final static List<Link>filterByRel(List<Link> $self, String rel)Finds all the links with the given relation. final static LinkfirstWithMediaType(List<Link> $self, MediaType mediaType)Finds the first link matching the given media type. final static List<Link>filterByMediaType(List<Link> $self, MediaType mediaType)Finds all the links matching the given media type. final static List<Link>filterByMediaTypes(List<Link> $self, List<MediaType> mediaTypes)Finds all the links matching any of the given media types. final static BooleanallMatchMediaType(List<Link> $self, MediaType mediaType)Returns whether all the resources in the collection are matching the given media type. final static BooleanallMatchMediaTypes(List<Link> $self, List<MediaType> mediaTypes)Returns whether all the resources in the collection are matching any of the given media types. -
-
Method Detail
-
getLinkHrefNormalizerIdentity
final Function1<String, String> getLinkHrefNormalizerIdentity()
Default href normalizer for Link, doing nothing.
-
getAllAreBitmap
final Boolean getAllAreBitmap()
-
getAllAreAudio
final Boolean getAllAreAudio()
-
getAllAreVideo
final Boolean getAllAreVideo()
-
getAllAreHtml
final Boolean getAllAreHtml()
-
indexOfFirstWithHref
final static Integer indexOfFirstWithHref(List<Link> $self, String href)
Returns the first Link with the given href, or null if not found.
-
firstWithHref
final static Link firstWithHref(List<Link> $self, String href)
Finds the first link matching the given HREF.
-
firstWithRel
final static Link firstWithRel(List<Link> $self, String rel)
Finds the first link with the given relation.
-
filterByRel
final static List<Link> filterByRel(List<Link> $self, String rel)
Finds all the links with the given relation.
-
firstWithMediaType
final static Link firstWithMediaType(List<Link> $self, MediaType mediaType)
Finds the first link matching the given media type.
-
filterByMediaType
final static List<Link> filterByMediaType(List<Link> $self, MediaType mediaType)
Finds all the links matching the given media type.
-
filterByMediaTypes
final static List<Link> filterByMediaTypes(List<Link> $self, List<MediaType> mediaTypes)
Finds all the links matching any of the given media types.
-
allMatchMediaType
final static Boolean allMatchMediaType(List<Link> $self, MediaType mediaType)
Returns whether all the resources in the collection are matching the given media type.
-
-
-
-