public final class EntityTools
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
EntityTools.IDComparator
Comparator that sorts entities by ID.
|
Modifier and Type | Method and Description |
---|---|
static void |
copyProperties(Entity from,
Entity to)
Copy relevant properties from one entity to another.
|
static <T extends Entity> |
sortedList(java.util.Collection<T> input)
Sort a collection of entities by ID and return a sorted list.
|
public static void copyProperties(Entity from, Entity to)
from
- The entity to copy property values from.to
- The entity to copy property values to.public static <T extends Entity> java.util.List<T> sortedList(java.util.Collection<T> input)
T
- A subtype of Entity.input
- The collection to sort.