All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.artemis.io.ComponentNameComparator Maven / Gradle / Ivy

There is a newer version: 2.3.0
Show newest version
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