public final class ExtendableEntityUtilInternal class that provides utility methods for extendable entity objects.
Static Methods
areKeysEqual(Key key1, Key key2)
public static boolean areKeysEqual(Key key1, Key key2)Check if the input Key objects are equal (including keys that are incomplete).
| Parameters | |
|---|---|
| Name | Description |
key1 |
Keythe first input key |
key2 |
Keythe second input key |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
checkSupportedValue(String propertyName, Object value, boolean valuePreChecked, Set<Class<?>> supportedTypes)
public static void checkSupportedValue(String propertyName, Object value, boolean valuePreChecked, Set<Class<?>> supportedTypes)If the specified object cannot be used as the value for a Entity property, throw an
exception with the appropriate explanation.
| Parameters | |
|---|---|
| Name | Description |
propertyName |
Stringthe name of the property. |
value |
Objectvalue in question |
valuePreChecked |
boolean
|
supportedTypes |
Set<Class<?>>the types considered to be valid types for the value. |
createKey(Key parent, String kind)
public static Key createKey(Key parent, String kind)Creates a new Key with the provided parent and kind. The instantiated Key will
be incomplete.
| Parameters | |
|---|---|
| Name | Description |
parent |
Keythe parent of the key to create, can be |
kind |
Stringthe kind of the key to create |
| Returns | |
|---|---|
| Type | Description |
Key |
|