/** Returns a header for a range of IDs, or null if not found */ public <T extends Header> T getHeader(short ... ids) { if(ids == null || ids.length == 0) return null; return Headers.getHeader(this.headers, ids); } /*---------------------------------------------------------------------*/
public <T extends Header> T getHeader(short id) { if(id <= 0) throw new IllegalArgumentException("An ID of " + id + " is invalid. Add the protocol which calls " + "getHeader() to jg-protocol-ids.xml"); return Headers.getHeader(this.headers, id); }
/** Returns a header for a range of IDs, or null if not found */ public <T extends Header> T getHeader(short ... ids) { if(ids == null || ids.length == 0) return null; return Headers.getHeader(this.headers, ids); } /*---------------------------------------------------------------------*/
public <T extends Header> T getHeader(short id) { if(id <= 0) throw new IllegalArgumentException("An ID of " + id + " is invalid. Add the protocol which calls " + "getHeader() to jg-protocol-ids.xml"); return Headers.getHeader(this.headers, id); }