LinkListExtension extension

on

Properties

allAreAudio bool
Returns whether all the resources in the collection are audio clips.
no setter
allAreBitmap bool
Returns whether all the resources in the collection are bitmaps.
no setter
allAreHtml bool
Returns whether all the resources in the collection are HTML documents.
no setter
allAreVideo bool
Returns whether all the resources in the collection are video clips.
no setter

Methods

allMatchMediaType(MediaType mediaType) bool
Returns whether all the resources in the collection are matching the given media type.
allMatchMediaTypes(List<MediaType> mediaTypes) bool
Returns whether all the resources in the collection are matching any of the given media types.
deepLinkWithHref(String href) Link?
filterByMediaType(MediaType mediaType) List<Link>
Finds all the links matching the given media type.
filterByMediaTypes(List<MediaType> mediaTypes) List<Link>
Finds all the links matching any of the given media types.
filterByRel(String rel) List<Link>
Finds all the links with the given relation.
firstWithHref(String href) Link?
Finds the first link matching the given HREF.
firstWithMediaType(MediaType mediaType) Link?
Finds the first link matching the given media type.
firstWithRel(String rel) Link?
Finds the first link with the given relation.
hrefCommonFirstComponent() File?
Returns a File to the directory containing all links, if there is such a directory.
indexOfFirstWithHref(String href) int?
Returns the first Link with the given href, or null if not found.