Example #1
0
 public void add(Fragment f, String path) {
   if (!this.contains(f)) {
     localRoute.put(f.toInt(), path);
   } else {
     localRoute.remove(f.toInt());
     localRoute.put(f.toInt(), path);
   }
 }
Example #2
0
 public Object get(Fragment f) {
   if (this.contains(f)) {
     return localRoute.get(f.toInt());
   } else {
     return null;
   }
 }
Example #3
0
  public boolean add(Fragment f, BF bf) {

    if (!this.contains(f)) {
      ContainerLocal c = new ContainerLocal(limit);
      c.add(bf);
      localRoute.put(f.toInt(), c);
      return true;
    } else {
      if ((((this.get(f)).getClass()).getName()).equals("java.lang.String")) {
        return false;
      } else {
        return ((ContainerLocal) this.get(f)).add(bf);
      }
    }
  }
Example #4
0
 public void remove(Fragment f) {
   this.localRoute.remove(f.toInt());
 }
Example #5
0
 public boolean contains(Fragment f) {
   return localRoute.containsKey(f.toInt());
 }