com.drew.lang.KeyValuePair Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of metadata-extractor Show documentation
Show all versions of metadata-extractor Show documentation
Java library for extracting EXIF, IPTC, XMP, ICC and other metadata from image and video files.
package com.drew.lang;
import com.drew.lang.annotations.NotNull;
/**
* Models a key/value pair, where both are non-null {@link String} objects.
*
* @author Drew Noakes https://drewnoakes.com
*/
public class KeyValuePair
{
private final String _key;
private final String _value;
public KeyValuePair(@NotNull String key, @NotNull String value)
{
_key = key;
_value = value;
}
@NotNull
public String getKey()
{
return _key;
}
@NotNull
public String getValue()
{
return _value;
}
}