//TODO 解説
This file contains hidden or 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
public class PhantomBuilderSample { | |
public static class Data { | |
private final int field1; | |
private final int field2; | |
private final int field3; | |
private final int optField1; | |
private final int optField2; | |
private Data(Builder<OK, OK, OK> builder) { |
This file contains hidden or 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
public class TypesafeBinaryVisitorSample { | |
public static abstract class Type implements Acceptor { | |
private Type(){} | |
public static final class Type1 extends Type { | |
@Override | |
public <R> R accept(Visitor1<R> visitor1) { | |
return visitor1.visit(this); | |
} | |
} |
This file contains hidden or 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
package raystark.eflib.function.notnull.composer; | |
import org.jetbrains.annotations.NotNull; | |
import raystark.eflib.function.notnull.NF1; | |
import raystark.eflib.util.OneShotState; | |
import java.util.Deque; | |
import java.util.LinkedList; | |
public final class ComposerNF1<T1, R> { |
OlderNewer