OnJava8-Examples/enumerated/Competitor.java
2015-04-20 15:36:01 -07:00

8 lines
182 B
Java

//: enumerated/Competitor.java
// Switching one enum on another.
package enumerated;
public interface Competitor<T extends Competitor<T>> {
Outcome compete(T competitor);
} ///:~