Skip to content

Commit ebc3164

Browse files
committed
Unpacker: changed order of method declarations
1 parent 40a15b1 commit ebc3164

1 file changed

Lines changed: 23 additions & 23 deletions

File tree

src/main/java/org/msgpack/unpacker/Unpacker.java

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -30,53 +30,53 @@
3030
* @version 0.6.0
3131
*/
3232
public interface Unpacker extends Iterable<Value>, Closeable {
33-
public boolean readBoolean() throws IOException;
33+
public <T> T read(Class<T> klass) throws IOException;
3434

35-
public byte readByte() throws IOException;
35+
public <T> T read(T to) throws IOException;
3636

37-
public short readShort() throws IOException;
37+
public void skip() throws IOException;
3838

39-
public int readInt() throws IOException;
4039

41-
public long readLong() throws IOException;
40+
public int readArrayBegin() throws IOException;
4241

43-
public BigInteger readBigInteger() throws IOException;
42+
public void readArrayEnd(boolean check) throws IOException;
4443

45-
public float readFloat() throws IOException;
44+
public void readArrayEnd() throws IOException;
4645

47-
public double readDouble() throws IOException;
46+
public int readMapBegin() throws IOException;
4847

49-
public byte[] readByteArray() throws IOException;
48+
public void readMapEnd(boolean check) throws IOException;
5049

51-
public ByteBuffer readByteBuffer() throws IOException;
50+
public void readMapEnd() throws IOException;
5251

53-
public String readString() throws IOException;
52+
public void readNil() throws IOException;
5453

55-
public Value readValue() throws IOException;
54+
public boolean trySkipNil() throws IOException;
5655

5756

58-
public void readNil() throws IOException;
57+
public boolean readBoolean() throws IOException;
5958

60-
public int readArrayBegin() throws IOException;
59+
public byte readByte() throws IOException;
6160

62-
public void readArrayEnd(boolean check) throws IOException;
61+
public short readShort() throws IOException;
6362

64-
public void readArrayEnd() throws IOException;
63+
public int readInt() throws IOException;
6564

66-
public int readMapBegin() throws IOException;
65+
public long readLong() throws IOException;
6766

68-
public void readMapEnd(boolean check) throws IOException;
67+
public BigInteger readBigInteger() throws IOException;
6968

70-
public void readMapEnd() throws IOException;
69+
public float readFloat() throws IOException;
7170

71+
public double readDouble() throws IOException;
7272

73-
public boolean trySkipNil() throws IOException;
73+
public byte[] readByteArray() throws IOException;
7474

75-
public void skip() throws IOException;
75+
public ByteBuffer readByteBuffer() throws IOException;
7676

77-
public <T> T read(Class<T> klass) throws IOException;
77+
public String readString() throws IOException;
7878

79-
public <T> T read(T to) throws IOException;
79+
public Value readValue() throws IOException;
8080

8181

8282
public UnpackerIterator iterator();

0 commit comments

Comments
 (0)