Updating spelling mistake
This commit is contained in:
parent
5bc91182a5
commit
20d6dbaef3
@ -31,10 +31,10 @@ public class AlternativeMultipeTypeList {
|
|||||||
// List via Functional Interface
|
// List via Functional Interface
|
||||||
List<Object> dataList = new ArrayList<>();
|
List<Object> dataList = new ArrayList<>();
|
||||||
|
|
||||||
Predicate<Object> myPricate = inputData -> (inputData instanceof String || inputData instanceof Integer);
|
Predicate<Object> myPredicate = inputData -> (inputData instanceof String || inputData instanceof Integer);
|
||||||
|
|
||||||
UserFunctionalInterface myInterface = (listObj, data) -> {
|
UserFunctionalInterface myInterface = (listObj, data) -> {
|
||||||
if (myPricate.test(data))
|
if (myPredicate.test(data))
|
||||||
listObj.add(data);
|
listObj.add(data);
|
||||||
else
|
else
|
||||||
System.out.println("Skipping input as data not allowed for class: " + data.getClass()
|
System.out.println("Skipping input as data not allowed for class: " + data.getClass()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user