Class LocaleCompat
- java.lang.Object
-
- org.schabi.newpipe.extractor.utils.LocaleCompat
-
public final class LocaleCompat extends java.lang.Object
This class contains a simple implementation ofLocale.forLanguageTag(String)
for Android API levels below 21 (Lollipop). This is needed as core library desugaring does not backport that method as of this writing.
Relevant issue: https://issuetracker.google.com/issues/171182330
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Optional<java.util.Locale>
forLanguageTag(java.lang.String str)
-