public final class Unsupported
extends java.lang.Object
UnsupportedOperationException method references.
For when you just need to pass Unsupported::exception.| Modifier and Type | Method and Description |
|---|---|
static <R> R |
exception() |
static <R,A> R |
exception(A a) |
static <R,A,B> R |
exception(A a,
B b) |
static <R,A,B,C> R |
exception(A a,
B b,
C c) |
public static <R> R exception()
R - the generic return typejava.lang.UnsupportedOperationException - alwayspublic static <R,A> R exception(A a)
R - the generic return typejava.lang.UnsupportedOperationException - alwayspublic static <R,A,B> R exception(A a,
B b)
R - the generic return typejava.lang.UnsupportedOperationException - alwayspublic static <R,A,B,C> R exception(A a,
B b,
C c)
R - the generic return typejava.lang.UnsupportedOperationException - always