All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.derive4j.processor.Either Maven / Gradle / Ivy

/*
 * Copyright (c) 2018, Jean-Baptiste Giraudeau 
 *
 * This file is part of "Derive4J - Annotation Processor".
 *
 * "Derive4J - Annotation Processor" is free software: you can redistribute it
 * and/or modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation, either version 3 of the License,
 * or (at your option) any later version.
 *
 * "Derive4J - Annotation Processor" is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with "Derive4J - Annotation Processor".  If not, see .
 */
package org.derive4j.processor;

import java.util.function.Function;
import org.derive4j.Data;

@Data
abstract class Either {
  abstract  X fold(Function left, Function right);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy