public class Metadata extends Object
Metadata
entry provides a mean of embedding arbitrary key/value
pairs into the ABC file. The AVM2 will ignore all such entries.
Note that, "empty key" and "empty value" are implemented as null
in
the key/value arrays by ABCParser
and ABCEmitter
.
Constructor and Description |
---|
Metadata(String name,
String[] keys,
String[] values)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static <T> boolean |
arrayEquals(T[] array1,
T[] array2)
Test two arrays of Comparable objects for equality.
|
boolean |
equals(Object o)
Determine equality by checking the Metadata objects' corresponding
fields.
|
String[] |
getKeys() |
String |
getName() |
String[] |
getValues() |
int |
hashCode()
Generate a composite hash code from this item's name and key/value set.
|
public static <T> boolean arrayEquals(T[] array1, T[] array2)
array1
- array 1array2
- array 2public String getName()
public String[] getKeys()
public String[] getValues()
public int hashCode()
Copyright © 2016 The Apache Software Foundation. All rights reserved.