com.artemis.io.ComponentNameComparator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of artemis-odb-serializer Show documentation
Show all versions of artemis-odb-serializer Show documentation
Fork of Artemis Entity System Framework.
package com.artemis.io;
import com.artemis.Component;
import java.io.Serializable;
import java.util.Comparator;
public class ComponentNameComparator implements Comparator, Serializable {
@Override
public int compare(Component o1, Component o2) {
String name1 = o1.getClass().getSimpleName();
String name2 = o2.getClass().getSimpleName();
return name1.compareTo(name2);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy