Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,16 @@ static AttributeKey<List<Long>> longArrayKey(String key) {
static AttributeKey<List<Double>> doubleArrayKey(String key) {
return InternalAttributeKeyImpl.create(key, AttributeType.DOUBLE_ARRAY);
}

static AttributeKey<byte[]> byteArrayKey(String key) {
return InternalAttributeKeyImpl.create(key, AttributeType.BYTE_ARRAY);
}

static AttributeKey<List<Value<?>>> valueArrayKey(String key) {
return InternalAttributeKeyImpl.create(key, AttributeType.VALUE_ARRAY);
}

static AttributeKey<Attributes> mapKey(String key) {
return InternalAttributeKeyImpl.create(key, AttributeType.MAP);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@ public enum AttributeType {
STRING_ARRAY,
BOOLEAN_ARRAY,
LONG_ARRAY,
DOUBLE_ARRAY
DOUBLE_ARRAY,
BYTE_ARRAY,
VALUE_ARRAY,
MAP
}
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ static Value<List<KeyValue>> of(Map<String, Value<?>> value) {
return KeyValueList.createFromMap(value);
}

static Value<List<KeyValue>> of(Attributes attributes) {
// TODO
}

/** Returns the type of this {@link Value}. Useful for building switch statements. */
ValueType getType();

Expand Down
Loading