public static Period getUnsupportedDurationPeriod(Partial p, Period offset) { if (offset == null) { return null; } Set<DurationFieldType> supported = getSupportedDurationFields(p); Period res = null; for (int i = 0; i < offset.size(); i++) { if (!supported.contains(offset.getFieldType(i))) { if (offset.getValue(i) != 0) { if (res == null) { res = new Period(); } res = res.withField(offset.getFieldType(i), offset.getValue(i)); } } } return res; } public static Partial combine(Partial p1, Partial p2) {
public static Period getUnsupportedDurationPeriod(Partial p, Period offset) { if (offset == null) { return null; } Set<DurationFieldType> supported = getSupportedDurationFields(p); Period res = null; for (int i = 0; i < offset.size(); i++) { if (!supported.contains(offset.getFieldType(i))) { if (offset.getValue(i) != 0) { if (res == null) { res = new Period(); } res = res.withField(offset.getFieldType(i), offset.getValue(i)); } } } return res; } public static Partial combine(Partial p1, Partial p2) {
public static Period getUnsupportedDurationPeriod(Partial p, Period offset) { if (offset == null) { return null; } Set<DurationFieldType> supported = getSupportedDurationFields(p); Period res = null; for (int i = 0; i < offset.size(); i++) { if (!supported.contains(offset.getFieldType(i))) { if (offset.getValue(i) != 0) { if (res == null) { res = new Period(); } res = res.withField(offset.getFieldType(i), offset.getValue(i)); } } } return res; } public static Partial combine(Partial p1, Partial p2) {
public static Period getUnsupportedDurationPeriod(Partial p, Period offset) { if (offset == null) { return null; } Set<DurationFieldType> supported = getSupportedDurationFields(p); Period res = null; for (int i = 0; i < offset.size(); i++) { if (!supported.contains(offset.getFieldType(i))) { if (offset.getValue(i) != 0) { if (res == null) { res = new Period(); } res = res.withField(offset.getFieldType(i), offset.getValue(i)); } } } return res; } public static Partial combine(Partial p1, Partial p2) {