/** * Creates a new instance of this class using the given parameters. * * @param id * The ID. * @param string * The string. */ public RegistryRecord(final int id, final String string) { this.id = id; this.string = string; this.strBytes = RegistryRecord.stringToBytes(this.string); }
/** * Creates a new instance of this class using the given parameters. * * @param id * The ID. * @param string * The string. */ public RegistryRecord(final int id, final String string) { this.id = id; this.string = string; this.strBytes = RegistryRecord.stringToBytes(this.string); }
/** * This constructor converts the given array into a record. It is recommended to use the array which is the result of a call to {@link #toArray()}. * * @param values * The values for the record. */ public RegistryRecord(final Object[] values) { // NOPMD (direct store of E (usually String)) AbstractMonitoringRecord.checkArray(values, TYPES); this.id = (Integer) values[0]; this.string = (String) (values[1]); this.strBytes = RegistryRecord.stringToBytes(this.string); }
/** * This constructor converts the given array into a record. It is recommended to use the array which is the result of a call to {@link #toArray()}. * * @param values * The values for the record. */ @SuppressWarnings("unchecked") public RegistryRecord(final Object[] values) { // NOPMD (direct store of E (usually String)) AbstractMonitoringRecord.checkArray(values, TYPES); this.id = (Integer) values[0]; this.string = (String) (values[1]); this.strBytes = RegistryRecord.stringToBytes(this.string); }