You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2016/03/14 16:04:19 UTC

[02/10] wicket git commit: WICKET-5991 Introduce models which use Java 8 supplier/consumer

WICKET-5991 Introduce models which use Java 8 supplier/consumer

Add serializable BiConsumer


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/e6851acc
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/e6851acc
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/e6851acc

Branch: refs/heads/master
Commit: e6851acc7ba32a1689869c82279fb77f465f0cae
Parents: ccd3ceb
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Sat Mar 12 09:52:15 2016 +0100
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Sat Mar 12 09:52:15 2016 +0100

----------------------------------------------------------------------
 .../wicket/model/lambda/WicketBiConsumer.java   | 32 ++++++++++++++++++++
 1 file changed, 32 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/e6851acc/wicket-core/src/main/java/org/apache/wicket/model/lambda/WicketBiConsumer.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/model/lambda/WicketBiConsumer.java b/wicket-core/src/main/java/org/apache/wicket/model/lambda/WicketBiConsumer.java
new file mode 100644
index 0000000..20d3ace
--- /dev/null
+++ b/wicket-core/src/main/java/org/apache/wicket/model/lambda/WicketBiConsumer.java
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wicket.model.lambda;
+
+import java.io.Serializable;
+import java.util.function.BiConsumer;
+
+/**
+ * A {@link Serializable} {@link BiConsumer}.
+ *
+ * @param <T>
+ *            - the type of the first input to consume
+ * @param <T>
+ *            - the type of the second input to consume
+ */
+public interface WicketBiConsumer<T, U> extends BiConsumer<T, U>, Serializable
+{
+}