com.github.tonivade.purefun.Kind Maven / Gradle / Ivy
/*
* Copyright (c) 2018-2022, Antonio Gabriel Muñoz Conejo
* Distributed under the terms of the MIT License
*/
package com.github.tonivade.purefun;
public interface Kind extends Witness {
default R fix(Fixer super Kind, ? extends R> fixer) {
return fixer.apply(this);
}
default Kind kind() {
return this;
}
@SuppressWarnings("unchecked")
static Kind narrowK(Kind kind) {
return (Kind) kind;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy