Class PatternsHolder
- java.lang.Object
-
- org.schabi.newpipe.extractor.timeago.PatternsHolder
-
- Direct Known Subclasses:
af
,am
,ar
,az
,be
,bg
,bn
,bs
,ca
,cs
,da
,de
,el
,en
,en_GB
,es
,es_419
,es_US
,et
,eu
,fa
,fi
,fil
,fr
,fr_CA
,gl
,gu
,hi
,hr
,hu
,hy
,id
,is
,it
,iw
,ja
,ka
,kk
,km
,kn
,ko
,ky
,lo
,lt
,lv
,mk
,ml
,mn
,mr
,ms
,my
,ne
,nl
,no
,pa
,pl
,pt
,pt_PT
,ro
,ru
,si
,sk
,sl
,sq
,sr
,sr_Latn
,sv
,sw
,ta
,te
,th
,tr
,uk
,ur
,uz
,vi
,zh_CN
,zh_HK
,zh_TW
,zu
public abstract class PatternsHolder extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PatternsHolder(java.lang.String wordSeparator, java.lang.String[] seconds, java.lang.String[] minutes, java.lang.String[] hours, java.lang.String[] days, java.lang.String[] weeks, java.lang.String[] months, java.lang.String[] years)
protected
PatternsHolder(java.lang.String wordSeparator, java.util.Collection<java.lang.String> seconds, java.util.Collection<java.lang.String> minutes, java.util.Collection<java.lang.String> hours, java.util.Collection<java.lang.String> days, java.util.Collection<java.lang.String> weeks, java.util.Collection<java.lang.String> months, java.util.Collection<java.lang.String> years)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.time.temporal.ChronoUnit,java.util.Collection<java.lang.String>>
asMap()
java.util.Collection<java.lang.String>
days()
java.util.Collection<java.lang.String>
hours()
java.util.Collection<java.lang.String>
minutes()
java.util.Collection<java.lang.String>
months()
protected void
putSpecialCase(java.time.temporal.ChronoUnit unit, java.lang.String caseText, int caseAmount)
java.util.Collection<java.lang.String>
seconds()
java.util.Map<java.time.temporal.ChronoUnit,java.util.Map<java.lang.String,java.lang.Integer>>
specialCases()
java.util.Collection<java.lang.String>
weeks()
java.lang.String
wordSeparator()
java.util.Collection<java.lang.String>
years()
-
-
-
Constructor Detail
-
PatternsHolder
protected PatternsHolder(java.lang.String wordSeparator, java.util.Collection<java.lang.String> seconds, java.util.Collection<java.lang.String> minutes, java.util.Collection<java.lang.String> hours, java.util.Collection<java.lang.String> days, java.util.Collection<java.lang.String> weeks, java.util.Collection<java.lang.String> months, java.util.Collection<java.lang.String> years)
-
PatternsHolder
protected PatternsHolder(java.lang.String wordSeparator, java.lang.String[] seconds, java.lang.String[] minutes, java.lang.String[] hours, java.lang.String[] days, java.lang.String[] weeks, java.lang.String[] months, java.lang.String[] years)
-
-
Method Detail
-
wordSeparator
public java.lang.String wordSeparator()
-
seconds
public java.util.Collection<java.lang.String> seconds()
-
minutes
public java.util.Collection<java.lang.String> minutes()
-
hours
public java.util.Collection<java.lang.String> hours()
-
days
public java.util.Collection<java.lang.String> days()
-
weeks
public java.util.Collection<java.lang.String> weeks()
-
months
public java.util.Collection<java.lang.String> months()
-
years
public java.util.Collection<java.lang.String> years()
-
specialCases
public java.util.Map<java.time.temporal.ChronoUnit,java.util.Map<java.lang.String,java.lang.Integer>> specialCases()
-
putSpecialCase
protected void putSpecialCase(java.time.temporal.ChronoUnit unit, java.lang.String caseText, int caseAmount)
-
asMap
public java.util.Map<java.time.temporal.ChronoUnit,java.util.Collection<java.lang.String>> asMap()
-
-