(int size)
| 603 | } |
| 604 | |
| 605 | private static int convertSizeToIndex(int size) { |
| 606 | switch (size) { |
| 607 | case TINY: return 0; |
| 608 | case SMALL: return 1; |
| 609 | case MEDIUM: return 2; |
| 610 | case LARGE: return 3; |
| 611 | case EXTRA_LARGE: return 4; |
| 612 | case XXL: return 5; |
| 613 | case XXXL: return 6; |
| 614 | } |
| 615 | return 1; |
| 616 | } |
| 617 | |
| 618 | private static int convertIndexToSize(int index) { |
| 619 | switch (index) { |
no outgoing calls
no test coverage detected