@Override public Dot11SupportedRatesElement build() { preBuild(); return new Dot11SupportedRatesElement(this); } }
/** * A static factory method. This method validates the arguments by {@link * ByteArrays#validateBounds(byte[], int, int)}, which may throw exceptions undocumented here. * * @param rawData rawData * @param offset offset * @param length length * @return a new Dot11SupportedRatesElement object. * @throws IllegalRawDataException if parsing the raw data fails. */ public static Dot11SupportedRatesElement newInstance(byte[] rawData, int offset, int length) throws IllegalRawDataException { ByteArrays.validateBounds(rawData, offset, length); return new Dot11SupportedRatesElement(rawData, offset, length); }
@Override public Dot11SupportedRatesElement build() { preBuild(); return new Dot11SupportedRatesElement(this); } }
/** * A static factory method. This method validates the arguments by {@link * ByteArrays#validateBounds(byte[], int, int)}, which may throw exceptions undocumented here. * * @param rawData rawData * @param offset offset * @param length length * @return a new Dot11SupportedRatesElement object. * @throws IllegalRawDataException if parsing the raw data fails. */ public static Dot11SupportedRatesElement newInstance(byte[] rawData, int offset, int length) throws IllegalRawDataException { ByteArrays.validateBounds(rawData, offset, length); return new Dot11SupportedRatesElement(rawData, offset, length); }