public class Properties extends Object implements Iterable<Property>, org.apache.flink.types.Value, Serializable
EPGMElement.| Constructor and Description |
|---|
Properties()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all elements from these properties.
|
boolean |
containsKey(String key)
Checks if a property with the given key is contained in the properties.
|
static Properties |
create()
Creates a new property list.
|
static Properties |
createFromMap(Map<String,Object> map)
Creates a new property collection from a given map.
|
static Properties |
createWithCapacity(int capacity)
Creates a new property list with the given initial capacity.
|
boolean |
equals(Object o)
Two properties collections are considered equal, if they contain the
same properties in the same order.
|
PropertyValue |
get(String key)
Returns the value to the given key of
null if the value does not
exist. |
Iterable<String> |
getKeys()
Returns property keys in insertion order.
|
int |
hashCode()
Two properties collections have identical hash codes, if they contain the
same properties in the same order.
|
boolean |
isEmpty()
True, if the properties collection does not store any properties.
|
Iterator<Property> |
iterator() |
void |
read(org.apache.flink.core.memory.DataInputView inputView) |
PropertyValue |
remove(Property property)
Removes the given property from the list.
|
PropertyValue |
remove(String key)
Removes the property of the given key from the list.
|
void |
set(Property property)
Sets the given property.
|
void |
set(String key,
Object value)
Sets the given property.
|
void |
set(String key,
PropertyValue value)
Sets the given property.
|
int |
size()
Returns the number of properties.
|
List<Property> |
toList()
Returns a list of properties.
|
String |
toString() |
void |
write(org.apache.flink.core.memory.DataOutputView outputView) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static Properties create()
public static Properties createWithCapacity(int capacity)
capacity - initial capacitypublic static Properties createFromMap(Map<String,Object> map)
null an empty properties instance will be returned.map - key value mappublic Iterable<String> getKeys()
public boolean containsKey(String key)
key - property keypublic PropertyValue get(String key)
null if the value does not
exist.key - property keynull if key does not existpublic void set(Property property)
property - propertypublic void set(String key, PropertyValue value)
key - property keyvalue - property valuepublic void set(String key, Object value)
key - property keyvalue - property valuepublic PropertyValue remove(String key)
key - property keypublic PropertyValue remove(Property property)
property - propertypublic void clear()
public int size()
public boolean isEmpty()
public boolean equals(Object o)
public int hashCode()
public void write(org.apache.flink.core.memory.DataOutputView outputView)
throws IOException
write in interface org.apache.flink.core.io.IOReadableWritableIOExceptionpublic void read(org.apache.flink.core.memory.DataInputView inputView)
throws IOException
read in interface org.apache.flink.core.io.IOReadableWritableIOExceptionCopyright © 2014 - 2019–2019 University of Leipzig. All rights reserved.