Skip to content

Commit da7b26f

Browse files
author
Mark
committed
made VPackSlice.getType(), isType(type) public
1 parent 45dffec commit da7b26f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/main/java/com/arangodb/velocypack/VPackParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ private void parse(
142142
VPackJsonDeserializer deserializer = null;
143143
if (attribute != null) {
144144
appendField(attribute, json);
145-
deserializer = getDeserializer(attribute, value.type());
145+
deserializer = getDeserializer(attribute, value.getType());
146146
}
147147
if (deserializer != null) {
148148
deserializer.deserialize(parent, attribute, value, json);

src/main/java/com/arangodb/velocypack/VPackSlice.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,16 @@ public int getStart() {
8080
return start;
8181
}
8282

83-
protected ValueType type() {
83+
public ValueType getType() {
8484
return ValueTypeUtil.get(head());
8585
}
8686

8787
private int length() {
8888
return ValueLengthUtil.get(head()) - 1;
8989
}
9090

91-
private boolean isType(final ValueType type) {
92-
return type() == type;
91+
public boolean isType(final ValueType type) {
92+
return getType() == type;
9393
}
9494

9595
public boolean isNone() {
@@ -399,7 +399,7 @@ public int getByteSize() {
399399
if (valueLength != 0) {
400400
size = valueLength;
401401
} else {
402-
switch (type()) {
402+
switch (getType()) {
403403
case ARRAY:
404404
case OBJECT:
405405
if (head == 0x13 || head == 0x14) {

0 commit comments

Comments
 (0)