generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
15fc6b7
commit 8b1f40b
Showing
6 changed files
with
155 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
jvm-runtime/testdata/java/javaserver/src/main/java/xyz/block/ftl/enums/Animal.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package xyz.block.ftl.enums; | ||
|
||
import xyz.block.ftl.Enum; | ||
|
||
@Enum | ||
public interface Animal { | ||
public boolean isCat(); | ||
|
||
public boolean isDog(); | ||
|
||
public Cat getCat(); | ||
|
||
public Dog getDog(); | ||
} |
22 changes: 22 additions & 0 deletions
22
jvm-runtime/testdata/java/javaserver/src/main/java/xyz/block/ftl/enums/Cat.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package xyz.block.ftl.enums; | ||
|
||
import xyz.block.ftl.EnumVariant; | ||
|
||
@EnumVariant | ||
public class Cat implements Animal { | ||
public boolean isCat() { | ||
return true; | ||
} | ||
|
||
public boolean isDog() { | ||
return false; | ||
} | ||
|
||
public Cat getCat() { | ||
return this; | ||
} | ||
|
||
public Dog getDog() { | ||
return null; | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
jvm-runtime/testdata/java/javaserver/src/main/java/xyz/block/ftl/enums/Dog.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package xyz.block.ftl.enums; | ||
|
||
import xyz.block.ftl.EnumVariant; | ||
|
||
@EnumVariant | ||
public class Dog implements Animal { | ||
public boolean isCat() { | ||
return false; | ||
} | ||
|
||
public boolean isDog() { | ||
return true; | ||
} | ||
|
||
public Cat getCat() { | ||
return null; | ||
} | ||
|
||
public Dog getDog() { | ||
return this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters