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

com.prezi.gradle.pride.Named Maven / Gradle / Ivy

package com.prezi.gradle.pride;

public interface Named {
	String getName();

	interface Namer {
		String getName(T value);
	}

	static Namer NAMED_NAMER = new Namer() {
		@Override
		public String getName(Named value) {
			return value.getName();
		}
	};

	static Namer TOSTRING_NAMER = new Namer() {
		@Override
		public String getName(Object value) {
			return String.valueOf(value);
		}
	};
}