OnJava8-Examples/enumerated/Competitor.java

8 lines
182 B
Java
Raw Normal View History

2015-04-20 15:36:01 -07:00
//: enumerated/Competitor.java
// Switching one enum on another.
package enumerated;
public interface Competitor<T extends Competitor<T>> {
Outcome compete(T competitor);
} ///:~