Optional describing the last element of this stream, or an empty Optional if the
stream is empty.Optional describing the last element of this stream, or an empty Optional if the
stream is empty.Stream decorator with extra operations for convenience.collect(Collectors.groupingBy(transformation)).collect(Collectors.groupingBy(transformation)).collect(Collectors.toList()).collect(Collectors.toList()).collect(Collectors.toMap(keyTransformation, valueTransformation)).collect(Collectors.toMap(keyTransformation, valueTransformation)).collect(Collectors.toSet()).collect(Collectors.toSet()).stream.filter(x -> transformation.apply(x) != null)).stream.filter(x -> transformation.apply(x) != null)).filter(x -> transformation.apply(x) == null).filter(x -> transformation.apply(x) == null).Copyright © 2014–2016 Nikolche Mihajlovski and contributors. All rights reserved.