@Test public void testNotAnIndex() { IndexResolver indexResolver = new IndexResolver(0) { @Override public Object resolve(Object contextObject, String name, ResolutionContext context) { return null; } }; assertTrue(indexResolver.notAnIndex("-1")); assertTrue(indexResolver.notAnIndex("size")); assertTrue(indexResolver.notAnIndex(".1")); assertTrue(indexResolver.notAnIndex("1,5")); assertFalse(indexResolver.notAnIndex("1500")); }
protected boolean notAnIndex(String name) { return !isAnIndex(name); }
IndexResolver extends AbstractResolver { protected boolean notAnIndex(String name) { return !isAnIndex(name); } }
IndexResolver extends AbstractResolver { protected boolean notAnIndex(String name) { return !isAnIndex(name); } IndexResolver(int priority); }
IndexResolver extends AbstractResolver { protected boolean notAnIndex(String name) { return !isAnIndex(name); } IndexResolver(int priority);  }
IndexResolver extends AbstractResolver { protected boolean notAnIndex(String name) { return !isAnIndex(name); } IndexResolver(int priority);   }