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.Serializable
Represents 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 ContentCountry
DEFAULT
-
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 boolean
equals(java.lang.Object o)
java.lang.String
getCountryCode()
int
hashCode()
static java.util.List<ContentCountry>
listFrom(java.lang.String... countryCodeList)
java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-