![JAR search and dependency download from the Maven repository](/logo.png)
org.libj.util.function.SerializableConsumer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of util Show documentation
Show all versions of util Show documentation
Supplementary utilities for classes that belong to java.util, or are considered essential as to justify existence in java.util.
The newest version!
/* Copyright (c) 2023 LibJ
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* You should have received a copy of The MIT License (MIT) along with this
* program. If not, see .
*/
package org.libj.util.function;
import java.io.Serializable;
import java.util.function.Consumer;
/**
* Represents an operation that accepts a single input argument and returns no result. Unlike most other functional interfaces,
* {@link Consumer} is expected to operate via side-effects.
*
* The {@link SerializableConsumer} distinguishes itself from {@link Consumer} by extending the {@link Serializable} interface, and
* restricting the input argument to {@link Serializable} subtypes.
*
* @param The type of the input to the operation (subclass of {@link Serializable}).
*/
@FunctionalInterface
public interface SerializableConsumer extends Consumer, Serializable {
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy