public class TransientUtils
extends java.lang.Object
Constructor and Description |
---|
TransientUtils() |
Modifier and Type | Method and Description |
---|---|
static <T extends com.simsilica.es.EntityComponent> |
clean(T component) |
static <T extends com.simsilica.es.EntityComponent> |
clean(T[] array)
If there are no transient components in the specified array
they are nulled out if supportTransients is true.
|
static boolean |
getSupportTransientComponents() |
static <T extends com.simsilica.es.EntityComponent> |
safeClean(T[] array)
If there are no transient components in the specified array
then it is returned directly, else a clone is returned with null
elements where any transient components previously existed.
|
static void |
setSupportTransientComponents(boolean f)
Turns suport for transient components on/off.
|
public static void setSupportTransientComponents(boolean f)
public static boolean getSupportTransientComponents()
public static <T extends com.simsilica.es.EntityComponent> T[] safeClean(T[] array)
public static <T extends com.simsilica.es.EntityComponent> T[] clean(T[] array)
public static <T extends com.simsilica.es.EntityComponent> T clean(T component)