From f9283a20abd9eaed0b0436bc54c60576233121f4 Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Mon, 11 Apr 2016 09:32:59 -0400 Subject: Added new method to pairs and holders --- BJC-Utils2/src/main/java/bjc/utils/data/IHolder.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'BJC-Utils2/src/main/java/bjc/utils/data/IHolder.java') diff --git a/BJC-Utils2/src/main/java/bjc/utils/data/IHolder.java b/BJC-Utils2/src/main/java/bjc/utils/data/IHolder.java index 6290d5f..a4f4013 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/data/IHolder.java +++ b/BJC-Utils2/src/main/java/bjc/utils/data/IHolder.java @@ -56,4 +56,15 @@ public interface IHolder { * @return The mapped value outside of a GenHolder */ public E unwrap(Function unwrapper); + + /** + * Bind the value in this holder to a new value + * + * @param + * The new type of the held value + * @param binder + * The function to do the binding with + * @return The bound value + */ + public IHolder bind(Function> binder); } \ No newline at end of file -- cgit v1.2.3