example.functionalj.elm.ElmExamples Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of functionalj-examples Show documentation
Show all versions of functionalj-examples Show documentation
Brining functional goodies to Java: functionalj-examples
package example.functionalj.elm;
import java.util.Optional;
import functionalj.list.FuncList;
import functionalj.types.Choice;
import functionalj.types.Struct;
import functionalj.types.elm.Elm;
public class ElmExamples {
@Elm
@Struct
void User(String firstName, String lastName) {}
@Elm
@Choice
interface LoginStatus {
void Loggined(
String name,
int age,
FuncList years,
Optional wealth,
User user);
void LoggedOut();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy