Class HalResourceMatchers


  • @ProviderType
    public final class HalResourceMatchers
    extends Object
    Default HAL resource matchers.
    • Method Detail

      • relation

        public static HalResourcePredicate relation​(String relationToMatch)
        Parameters:
        relationToMatch - HAL resource relation
        Returns:
        True if resource has given relation
      • collection

        public static HalResourcePredicate collection​(String relationToMatch)
        Parameters:
        relationToMatch - Relation of the item
        Returns:
        True if resource is an item of the given relation.