Package world.mappable.runtime

Class KeyValuePair

java.lang.Object
    ↳ world.mappable.runtime.KeyValuePair

class KeyValuePair implements Serializable

Universal key-value data.

Summary

Constructors

Signature and Description

KeyValuePair(@NonNull java.lang.String key,
             @NonNull java.lang.String value)

KeyValuePair()
Use constructor with parameters in your code.

Methods

Type and modifiers

Method and Description

java.lang.String

getKey()
Data key.

java.lang.String

getValue()
Data value.

void

serialize(world.mappable.runtime.bindings.Archive archive)

Constuctors

KeyValuePair

KeyValuePair(@NonNull java.lang.String key,
             @NonNull java.lang.String value)


KeyValuePair

KeyValuePair()

Use constructor with parameters in your code.

This one is for bindings only!


Methods

getKey

@NonNull
java.lang.String getKey()

Data key.

For example, "currency".


getValue

@NonNull
java.lang.String getValue()

Data value.

For example, "USD".


serialize

@Override
void serialize(world.mappable.runtime.bindings.Archive archive)


Previous