public List getOptions ( int code ) { if ( options == null ) return Collections . EMPTY_LIST ; List list = null ; for ( Iterator it = options . iterator ( ) ; it . hasNext ( ) ; ) { Option opt = ( Option ) it . next ( ) ; if ( opt . code == code ) { if ( list == null ) list = new ArrayList ( ) ; list . add ( opt . data ) ; } } if ( list == null ) return Collections . EMPTY_LIST ; return list ; }
Gets all options in the OPTRecord with a specific code . This returns a list of byte arrays .