Class Util


  • public final class Util
    extends Object
    • Method Detail

      • resultRpcSuccessFor

        public static <T> com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<T>> resultRpcSuccessFor​(T output)
      • expandQname

        public static List<org.opendaylight.yangtools.yang.model.api.SchemaPath> expandQname​(List<org.opendaylight.yangtools.yang.model.api.SchemaPath> list,
                                                                                             Pattern pattern)
        Method filters qnames based on wildcard strings.
        Parameters:
        list - list of SchemaPaths
        pattern - matching pattern
        Returns:
        list of filtered qnames
      • wildcardToRegex

        public static String wildcardToRegex​(String wildcard)
        CREDIT to http://www.rgagnon.com/javadetails/java-0515.html.