public UberNode getFirstByRel(String rel) {
        // TODO consider less naive impl
        for (UberNode node : data) {
            List<String> myRels = node.getRel();
            if (myRels != null) {
                for (String myRel : myRels) {
                    if (rel.equals(myRel)) {
                        return node;
                    }
                }
            }
        }
        return null;
    }
public UberNode getFirstByRel(String rel) {
        
        for (UberNode node : data) {
            List<String> myRels = node.getRel();
            if (myRels != null) {
                for (String myRel : myRels) {
                    if (rel.equals(myRel)) {
                        return node;
                    }
                }
            }
        }
        return null;
    }
public UberNode getFirstByRel ( String rel ) { // TODO consider less naive impl for ( UberNode node : data ) { List < String > myRels = node . getRel ( ) ; if ( myRels != null ) { for ( String myRel : myRels ) { if ( rel . equals ( myRel ) ) { return node ; } } } } return null ; }
Gets first child of this uber node having the given rel attribute.

@param rel
to look up
@return found child or null
Gets first child of this uber node having the given rel attribute .