T
- targetN
- numberpublic interface PacketFactory<T,N extends NamedNumber<?,?>>
Modifier and Type | Method and Description |
---|---|
Class<? extends T> |
getTargetClass() |
Class<? extends T> |
getTargetClass(N number) |
T |
newInstance(byte[] rawData,
int offset,
int length) |
T |
newInstance(byte[] rawData,
int offset,
int length,
N number) |
T newInstance(byte[] rawData, int offset, int length, N number)
rawData
- offset
- length
- number
- T newInstance(byte[] rawData, int offset, int length)
rawData
- offset
- length
- Class<? extends T> getTargetClass(N number)
number
- Class
object this factory instantiates
by #newInstance(byte[], NamedNumber)
with the number argument.Copyright © 2014. All Rights Reserved.