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

com.github.tonivade.purefun.Bindable Maven / Gradle / Ivy

/*
 * Copyright (c) 2018-2021, Antonio Gabriel Muñoz Conejo 
 * Distributed under the terms of the MIT License
 */
package com.github.tonivade.purefun;

public interface Bindable extends Mappable {
  
  @Override
   Bindable map(Function1 mapper);

   Bindable flatMap(Function1> mapper);
  
  default  Bindable andThen(Kind next) {
    return flatMap(ignore -> next);
  }
  
  @SuppressWarnings("unchecked")
  static  Bindable narrowK(Kind kind) {
    return (Bindable) kind;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy