Class ContentCountry
- java.lang.Object
-
- org.schabi.newpipe.extractor.localization.ContentCountry
-
- All Implemented Interfaces:
java.io.Serializable
public class ContentCountry extends java.lang.Object implements java.io.SerializableRepresents a country that should be used when fetching content.YouTube, for example, give different results in their feed depending on which country is selected.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ContentCountryDEFAULT
-
Constructor Summary
Constructors Constructor Description ContentCountry(java.lang.String countryCode)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetCountryCode()inthashCode()static java.util.List<ContentCountry>listFrom(java.lang.String... countryCodeList)java.lang.StringtoString()
-
-
-
Field Detail
-
DEFAULT
public static final ContentCountry DEFAULT
-
-
Method Detail
-
listFrom
public static java.util.List<ContentCountry> listFrom(java.lang.String... countryCodeList)
-
getCountryCode
@Nonnull public java.lang.String getCountryCode()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-