public int getSize() { int size = 0; for (ClassExpression exp : bounded.values()) { size += exp.getRoot().getSize(); } return size; }
/** * Number of endpoints registered. * * @return number of endpoints registered */ public int getSize() { if (widerMatching) return rootNode.getSize(); else return root.getSize(); }
public void removeBinding(String classExpression, String path, Method method) { if (classExpression.startsWith("/")) classExpression = classExpression.substring(1); if (classExpression.endsWith("/")) classExpression = classExpression.substring(0, classExpression.length() - 1); String regex = new ClassExpression(classExpression).getRegex(); ClassExpression ce = bounded.get(regex); if (ce == null) return; ce.getRoot().removeBinding(path, method); if (ce.getRoot().getSize() == 0) { ce.getParent().targets.remove(ce); bounded.remove(regex); } }
public int getSize() { int size = 0; for (ClassExpression exp : bounded.values()) { size += exp.getRoot().getSize(); } return size; }
public int getSize() { int size = 0; for (ClassExpression exp : bounded.values()) { size += exp.getRoot().getSize(); } return size; }
/** * Number of endpoints registered * * @return */ public int getSize() { if (widerMatching) return rootNode.getSize(); else return root.getSize(); }
/** * Number of endpoints registered. * * @return number of endpoints registered */ public int getSize() { if (widerMatching) return rootNode.getSize(); else return root.getSize(); }
public void removeBinding(String classExpression, String path, Method method) { if (classExpression.startsWith("/")) classExpression = classExpression.substring(1); if (classExpression.endsWith("/")) classExpression = classExpression.substring(0, classExpression.length() - 1); String regex = new ClassExpression(classExpression).getRegex(); ClassExpression ce = bounded.get(regex); if (ce == null) return; ce.getRoot().removeBinding(path, method); if (ce.getRoot().getSize() == 0) { ce.getParent().targets.remove(ce); bounded.remove(regex); } }
public void removeBinding(String classExpression, String path, Method method) { if (classExpression.startsWith("/")) classExpression = classExpression.substring(1); if (classExpression.endsWith("/")) classExpression = classExpression.substring(0, classExpression.length() - 1); String regex = new ClassExpression(classExpression).getRegex(); ClassExpression ce = bounded.get(regex); if (ce == null) return; ce.getRoot().removeBinding(path, method); if (ce.getRoot().getSize() == 0) { ce.getParent().targets.remove(ce); bounded.remove(regex); } }