OnJava8-Examples/enums/Competitor.java
2016-12-30 17:23:13 -08:00

11 lines
326 B
Java

// enums/Competitor.java
// (c)2017 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information.
// Switching one enum on another
package enums;
public interface Competitor<T extends Competitor<T>> {
Outcome compete(T competitor);
}