@ Pure public static MACNumber [ ] parse ( String addresses ) { if ( ( addresses == null ) || ( "" . equals ( addresses ) ) ) { //$NON-NLS-1$ return new MACNumber [ 0 ] ; } final String [ ] adrs = addresses . split ( Pattern . quote ( Character . toString ( MACNUMBER_SEPARATOR ) ) ) ; final List < MACNumber > list = new ArrayList <> ( ) ; for ( final String adr : adrs ) { list . add ( new MACNumber ( adr ) ) ; } final MACNumber [ ] tab = new MACNumber [ list . size ( ) ] ; list . toArray ( tab ) ; list . clear ( ) ; return tab ; }
Parse the specified string an repleis the corresponding MAC numbers .