List<Measurement> getMeasurements() {
    return stream()
        .filter(m -> !m.hasExpired())
        .flatMap(m -> StreamSupport.stream(m.measure().spliterator(), false))
        .collect(Collectors.toList());
  }
List < Measurement > getMeasurements ( ) { return stream ( ) . filter ( m -> ! m . hasExpired ( ) ) . flatMap ( m -> StreamSupport . stream ( m . measure ( ) . spliterator ( ) , false ) ) . collect ( Collectors . toList ( ) ) ; }
Get a list of all measurements from the registry.