| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
package uk.me.parabola.imgfmt.app.srt; |
| 14 |
|
| 15 |
import java.text.Collator; |
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
public class CodePosition { |
| 23 |
private int primary; |
| 24 |
private int secondary; |
| 25 |
private int tertiary; |
| 26 |
|
| 27 |
public int getPrimary() { |
| 28 |
return primary; |
| 29 |
} |
| 30 |
|
| 31 |
public int getSecondary() { |
| 32 |
return secondary; |
| 33 |
} |
| 34 |
|
| 35 |
public int getTertiary() { |
| 36 |
return tertiary; |
| 37 |
} |
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
public int getPosition(int type) { |
| 46 |
switch (type) { |
| 47 |
case Collator.PRIMARY: |
| 48 |
return primary; |
| 49 |
case Collator.SECONDARY: |
| 50 |
return secondary; |
| 51 |
case Collator.TERTIARY: |
| 52 |
return tertiary; |
| 53 |
default: |
| 54 |
return 0; |
| 55 |
} |
| 56 |
} |
| 57 |
|
| 58 |
public void setPrimary(int primary) { |
| 59 |
this.primary = primary; |
| 60 |
} |
| 61 |
|
| 62 |
public void setSecondary(int secondary) { |
| 63 |
this.secondary = secondary; |
| 64 |
} |
| 65 |
|
| 66 |
public void setTertiary(int tertiary) { |
| 67 |
this.tertiary = tertiary; |
| 68 |
} |
| 69 |
} |