From 5d675a0e294ca83b5739ef57be7e9bcfb04c35af Mon Sep 17 00:00:00 2001 From: aherbert Date: Thu, 18 Jun 2020 12:09:50 +0100 Subject: [PATCH] Add skeleton package-info --- .../commons/lang3/function/package-info.java | 28 +++++++++++++++++++ .../commons/lang3/stream/package-info.java | 26 +++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 src/main/java/org/apache/commons/lang3/function/package-info.java create mode 100644 src/main/java/org/apache/commons/lang3/stream/package-info.java diff --git a/src/main/java/org/apache/commons/lang3/function/package-info.java b/src/main/java/org/apache/commons/lang3/function/package-info.java new file mode 100644 index 000000000..aae4c7dd3 --- /dev/null +++ b/src/main/java/org/apache/commons/lang3/function/package-info.java @@ -0,0 +1,28 @@ +/* + * 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. + */ +/** + * Provides functional interfaces to complement those in {@code java.lang.function} and utilities + * for working with Java 8 lambdas. + * + *

Contains failable functional interfaces that address the fact that lambdas are supposed not to + * throw Exceptions, at least not checked Exceptions, AKA instances of {@link java.lang.Exception}. + * A failable functional interface declares a type of Exception that may be raised if the function + * fails. + * + * @since 3.11 + */ +package org.apache.commons.lang3.function; diff --git a/src/main/java/org/apache/commons/lang3/stream/package-info.java b/src/main/java/org/apache/commons/lang3/stream/package-info.java new file mode 100644 index 000000000..b2deefcfb --- /dev/null +++ b/src/main/java/org/apache/commons/lang3/stream/package-info.java @@ -0,0 +1,26 @@ +/* + * 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. + */ +/** + * Provides utility classes to complement those in {@code java.util.stream}. + * + *

Contains utilities to allow streaming of failable functional interfaces from the + * {@code org.apache.commons.lang3.functions} package allowing streaming of functional expressions + * that may raise an Exception. + * + * @since 3.11 + */ +package org.apache.commons.lang3.stream;