return ranges.stream().map(range -> Locale.forLanguageTag(range.getRange())).filter(locale -> StringUtils.hasText(locale.getDisplayName())).findFirst().orElse(null); | return ranges.stream().map(range -> Locale.forLanguageTag(range.getRange())).filter(locale -> StringUtils.hasText(locale.getDisplayName())).collect(Collectors.toList()); | ranges.stream().map(range -> Locale.forLanguageTag(range.getRange())).filter(locale -> StringUtils.hasText(locale.getDisplayName())).findFirst().orElse(null) | ranges.stream().map(range -> Locale.forLanguageTag(range.getRange())).filter(locale -> StringUtils.hasText(locale.getDisplayName())).collect(Collectors.toList()) | spring-framework | 3393c10d790abfb0092edcce95519807d6f94568 | org.springframework.http.HttpHeaders | | _1 | getAcceptLanguageAsLocale |
---|
_2 | getAcceptLanguageAsLocales |
---|
| v0 | ranges.stream().map(range -> Locale.forLanguageTag(range.getRange())).filter(locale -> StringUtils.hasText(locale.getDisplayName())) |
---|
| - java.util.stream.Collectors
| v0 | ranges.stream().map(range -> Locale.forLanguageTag(range.getRange())).filter(locale -> StringUtils.hasText(locale.getDisplayName())) |
---|
| Returns | True |