private boolean checkMatch ( ) { if ( matchList == null ) { return true ; } final int matchSize = matchList . size ( ) ; final int ancestorSize = topicIdList . size ( ) ; final List < String > tail = topicIdList . subList ( ancestorSize - matchSize , ancestorSize ) ; return matchList . equals ( tail ) ; }
check whether the hierarchy of current node match the matchList