/** * Add a ResourceComparator to this Sort ResourceCollection. If multiple ResourceComparators are * added, they will be processed in LIFO order. * * @param c the ResourceComparator to add. */ public synchronized void add(ResourceComparator c) { if (isReference()) { throw noChildrenAllowed(); } comp.add(c); FailFast.invalidate(this); }
/** * Add a ResourceSelector. * * @param s the ResourceSelector to add. */ public synchronized void add(ResourceSelector s) { if (s == null) { return; } super.add(s); FailFast.invalidate(this); }