MCPcopy Create free account
hub / github.com/MenoData/Time4J / CalendarWeekElement

Class CalendarWeekElement

base/src/main/java/net/time4j/Weekmodel.java:1327–1488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1325 }
1326
1327 private class CalendarWeekElement
1328 extends AbstractDateElement<Integer> {
1329
1330 //~ Statische Felder/Initialisierungen ----------------------------
1331
1332 private static final long serialVersionUID = -5936254509996557266L;
1333
1334 //~ Instanzvariablen ----------------------------------------------
1335
1336 /**
1337 * @serial 0 = CALENDAR_WEEK_OF_YEAR, 1 = CALENDAR_WEEK_OF_MONTH,
1338 * 2 = BOUNDED_WEEK_OF_YEAR, 3 = BOUNDED_WEEK_OF_MONTH
1339 */
1340 private final int category;
1341
1342 //~ Konstruktoren -------------------------------------------------
1343
1344 CalendarWeekElement(
1345 String name,
1346 int category
1347 ) {
1348 super(name);
1349
1350 this.category = category;
1351
1352 }
1353
1354 //~ Methoden ------------------------------------------------------
1355
1356 @Override
1357 public char getSymbol() {
1358
1359 switch (this.category) {
1360 case CALENDAR_WEEK_OF_YEAR:
1361 return 'w';
1362 case CALENDAR_WEEK_OF_MONTH:
1363 return 'W';
1364 default:
1365 return super.getSymbol();
1366 }
1367
1368 }
1369
1370 @Override
1371 public Class<Integer> getType() {
1372
1373 return Integer.class;
1374
1375 }
1376
1377 @Override
1378 public Integer getDefaultMinimum() {
1379
1380 return Integer.valueOf(1);
1381
1382 }
1383
1384 @Override

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected