public static SiblingCounter constant ( final int count ) { assert count > - 1 ; return new SiblingCounter ( ) { @ Override public int countSiblingsNamed ( Name childName ) { return count ; } } ; }
Create a sibling counter that always return the supplied count regardless of the name or node .