de.gurkenlabs.litiengine.resources.Resource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of litiengine Show documentation
Show all versions of litiengine Show documentation
The FOSS 2D Java game engine.
The newest version!
package de.gurkenlabs.litiengine.resources;
import de.gurkenlabs.litiengine.util.AlphanumComparator;
public interface Resource extends Comparable {
/**
* Gets the name.
*
* @return the name
*/
String getName();
void setName(String name);
@Override
default int compareTo(Resource obj) {
return AlphanumComparator.compareTo(this.getName(), obj.getName());
}
}