public Date getDate(String privateCreator, int tag, VR vr, DatePrecision precision) { return getDate(privateCreator, tag, vr, 0, null, precision); }
public Date getDate(String privateCreator, int tag, VR vr, Date defVal, DatePrecision precision) { return getDate(privateCreator, tag, vr, 0, defVal, precision); }
public Date getDate(long tag, DatePrecision precision) { return getDate(null, tag, null, precision); }
public Date getDate(int tag, int valueIndex, Date defVal, DatePrecision precision) { return getDate(null, tag, null, valueIndex, defVal, precision); }
public Date getDate(String privateCreator, int tag, int valueIndex, DatePrecision precision) { return getDate(privateCreator, tag, null, valueIndex, null, precision); }
public Date getDate(String privateCreator, int tag, Date defVal, DatePrecision precision) { return getDate(privateCreator, tag, null, 0, defVal, precision); }
public Date getDate(String privateCreator, int tag, int valueIndex, Date defVal, DatePrecision precision) { return getDate(privateCreator, tag, null, valueIndex, defVal, precision); }
public Date getDate(String privateCreator, int tag, VR vr, int valueIndex, DatePrecision precision) { return getDate(privateCreator, tag, vr, valueIndex, null, precision); }
private static Date getDate(Attributes dicom, int... tagID) { Date date = null; for (int i : tagID) { date = dicom.getDate(i); if (date != null) { return date; } } return date; }
@Override Object toArg(Attributes attrs, int tag, int index) { return tag != 0 ? attrs.getDate(tag, index) : new Date(); } },
@Override Object toArg(Attributes attrs, int tag, int index) { return tag != 0 ? attrs.getDate(tag, index) : new Date(); } },
public static LocalDateTime dateTime(long dateTimeID, Attributes attributes) { if (attributes == null) { return null; } Date date = attributes.getDate(dateTimeID); if (date == null) { return null; } return LocalDateTime.ofInstant(date.toInstant(), ZoneId.systemDefault()); }
public Date getDate(String privateCreator, int tag, int valueIndex, Date defVal) { return getDate(privateCreator, tag, null, valueIndex, defVal, new DatePrecision()); }
public Date getDate(String privateCreator, int tag, VR vr, int valueIndex, Date defVal) { return getDate(privateCreator, tag, vr, valueIndex, defVal, new DatePrecision()); }
public Date getDate(int tag, Date defVal) { return getDate(null, tag, null, 0, defVal, new DatePrecision()); }
public Date getDate(String privateCreator, int tag) { return getDate(privateCreator, tag, null, 0, null, new DatePrecision()); }
public Date getDate(String privateCreator, int tag, int valueIndex) { return getDate(privateCreator, tag, null, valueIndex, null, new DatePrecision()); }
public Date getDate(String privateCreator, int tag, VR vr, int valueIndex) { return getDate(privateCreator, tag, vr, valueIndex, null, new DatePrecision()); }
public static Date getDateFromDicomElement(Attributes dicom, int tag, Date defaultValue) { if (dicom == null || !dicom.containsValue(tag)) { return defaultValue; } return dicom.getDate(tag, defaultValue); }
public Date getDate(String privateCreator, long tag) { return getDate(privateCreator, tag, null, new DatePrecision()); }