R
R
Refri2015-10-16 06:25:50
Java
Refri, 2015-10-16 06:25:50

What does double colon mean in java?

What does the double colon mean for example Integer::valueOf and how else can it be used?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
cthulhudx, 2015-10-16
@cthulhudx

Method pointer.
Usage example:

List<String> list = ... 
list.stream()
.filter(YourPredicates::somePredicate)
.forEach(System.out::println);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question