Package org.gradle.api
Class Namer.Comparator<T>
- java.lang.Object
-
- org.gradle.api.Namer.Comparator<T>
-
- Type Parameters:
T
- The type of object that the namer can name
- All Implemented Interfaces:
java.util.Comparator<T>
public static class Namer.Comparator<T> extends java.lang.Object implements java.util.Comparator<T>
A comparator implementation based on the names returned by the given namer.
-
-
Constructor Summary
Constructors Constructor Description Comparator(Namer<? super T> namer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(T o1, T o2)
boolean
equals(java.lang.Object obj)
int
hashCode()
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacejava.util.Comparator<T>
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-