Closed primetomas closed 3 years ago
By adding equals and hashCode to CKA we can use java streams for some cool operations like:
final List<CKA> ckasAsList = Arrays.stream(ckas).collect(toList()); final List<Long> objectRefsFromCache = cache.stream() .map(attribute -> attribute.objectRef) .distinct() .filter(objectRef -> hasAllAttributes(objectRef, ckasAsList)) .collect(toList());
By adding equals and hashCode to CKA we can use java streams for some cool operations like: