public class UserConfigurationCompare extends Object
Modifier and Type | Field and Description |
---|---|
protected static Set<String> |
ignoredProperties |
Constructor and Description |
---|
UserConfigurationCompare() |
Modifier and Type | Method and Description |
---|---|
protected static <T> T |
castTo(Class<T> clazz,
Object entity) |
static boolean |
configEqual(Object entity1,
Object entity2)
This method detects if the user has changed the configuration of an entity.
|
protected static boolean |
configEqualKubernetesDTO(@NotNull Object entity1,
@NotNull Object entity2,
@NotNull Class<?> clazz)
Compares 2 instances of the given Kubernetes DTO class to see if the user has changed their configuration.
|
protected static boolean |
configEqualMap(Map entity1,
Map entity2) |
protected static boolean |
configEqualObjectMeta(io.fabric8.kubernetes.api.model.ObjectMeta entity1,
io.fabric8.kubernetes.api.model.ObjectMeta entity2) |
protected static Object |
invokeMethod(@NotNull Object entity,
Method readMethod) |
protected static int |
size(Collection coll) |
protected static int |
size(Map map) |
public static boolean configEqual(Object entity1, Object entity2)
entity1
- first Objectentity2
- second Objectprotected static boolean configEqualKubernetesDTO(@NotNull @NotNull Object entity1, @NotNull @NotNull Object entity2, @NotNull @NotNull Class<?> clazz)
ignoredProperties
such as status or timestamp propertiesentity1
- first entityentity2
- second entityclazz
- class nameprotected static Object invokeMethod(@NotNull @NotNull Object entity, Method readMethod) throws InvocationTargetException, IllegalAccessException
protected static boolean configEqualObjectMeta(io.fabric8.kubernetes.api.model.ObjectMeta entity1, io.fabric8.kubernetes.api.model.ObjectMeta entity2)
protected static int size(Map map)
protected static int size(Collection coll)
Copyright © 2021. All rights reserved.