Ejemplo n.º 1
0
 @Requires("allStates != null")
 @Ensures("result != null")
 public Set<Integer> getKeys(final List<List<Object>> allStates) {
   final HashSet<Integer> keys = new HashSet<Integer>();
   root.find(allStates, 0, keys);
   return keys;
 }
Ejemplo n.º 2
0
 @Requires("states != null")
 @Ensures("result >= -1")
 public int getKey(final List<Object> states) {
   return root.find(states, 0);
 }