Class BindingSet<T>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DEFAULT  
    • Method Detail

      • match

        public BindingMatch<T> match​(java.net.URI uri)

        Resolves the binding that best matches (see commentary on BindingRepository.bind(String, Object)) the given URI, and returns a BindingMatch object that describes the match and contains the matched target. If there is no binding that matches the given URI, this method returns null.

        Parameters:
        uri - The URI to match against the bindings in this set.
        Returns:
        A BindingMatch object describing the match found, or null if not found.
      • resolve

        public T resolve​(java.net.URI uri)

        Resolves the binding that best matches (see commentary on BindingRepository.bind(String, Object)) the given URI, and returns that target. If there is no binding that matches the given URI, this method returns null.

        Apart from a null-guard, this is equal to return match(uri).target().

        Parameters:
        uri - The URI to match against the bindings in this set.
        Returns:
        The best matched target, or null.
        See Also:
        match(URI)
      • iterator

        public java.util.Iterator<java.util.Map.Entry<UriPattern,​T>> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<T>