public List < TLVElement > getChildElements ( int tag ) { List < TLVElement > elements = new LinkedList <> ( ) ; for ( TLVElement element : children ) { if ( tag == element . getType ( ) ) { elements . add ( element ) ; } } return elements ; }
Returns all the tags with the specified tag .