Examples of asSet()


Examples of org.apache.shiro.subject.PrincipalCollection.asSet()

        //返回 a b c
        Set<String> realmNames = princialCollection.getRealmNames();
        System.out.println(realmNames);

        //因为MyRealm1和MyRealm2返回的凭据都是zhang,所以排重了
        Set<Object> principals = princialCollection.asSet(); //asList和asSet的结果一样
        System.out.println(principals);

        //根据Realm名字获取
        Collection<User> users = princialCollection.fromRealm("c");
        System.out.println(users);
View Full Code Here

Examples of org.openrdf.result.GraphResult.asSet()

      // Graph expectedGraph = readExpectedTupleQueryResult();
      // compareGraphs(queryGraph, expectedGraph);
    }
    else if (query instanceof GraphQuery) {
      GraphResult gqr = ((GraphQuery)query).evaluate();
      Set<Statement> queryResult = gqr.asSet();

      Set<Statement> expectedResult = readExpectedGraphQueryResult();

      compareGraphs(queryResult, expectedResult);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.