java.com.ionic.sdk.agent.key.KeyAttribute Maven / Gradle / Ivy
Show all versions of ionic-sdk Show documentation
package com.ionic.sdk.agent.key;
import java.util.ArrayList;
import java.util.Arrays;
/**
* Convenience class allowing for terse instantiation of a single {@link KeyAttributesMap} member.
*
* See
* Arbitrary Number of Arguments for more information.
*/
public class KeyAttribute extends ArrayList {
/**
* The key value associated with the {@link KeyAttributesMap} member.
*/
private final String key;
/**
* Constructor.
*
* @param key the map key
* @param values the map values, expressed as a varargs
*/
public KeyAttribute(final String key, final String... values) {
super();
this.key = key;
this.addAll(Arrays.asList(values));
}
/**
* @return the key value associated with the {@link KeyAttributesMap} member
*/
public String getKey() {
return key;
}
/** Value of serialVersionUID from maven coordinates "com.ionic:ionic-sdk:2.8.0". */
private static final long serialVersionUID = 3768757403730422339L;
}