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

de.gurkenlabs.litiengine.resources.Resource Maven / Gradle / Ivy

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());
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy