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); } }
public Object get(Fragment f) { if (this.contains(f)) { return localRoute.get(f.toInt()); } else { return null; } }
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); } } }
public void remove(Fragment f) { this.localRoute.remove(f.toInt()); }
public boolean contains(Fragment f) { return localRoute.containsKey(f.toInt()); }