Package gov.nih.mipav.model.file
Class MetadataExtractor.Age
java.lang.Object
gov.nih.mipav.model.file.MetadataExtractor.Age
- Enclosing class:
MetadataExtractor
Represents an age in years, months, days, hours, minutes and seconds.
Used by certain Panasonic cameras which have face recognition features.
- Author:
- Drew Noakes https://drewnoakes.com
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidappendAgePart(StringBuilder result, int num, String singularName) booleanParses an age object from the string format used by Panasonic cameras:0031:07:15 00:00:00intgetDays()intgetHours()intintintintgetYears()inthashCode()toString()
-
Field Details
-
_years
private int _years -
_months
private int _months -
_days
private int _days -
_hours
private int _hours -
_minutes
private int _minutes -
_seconds
private int _seconds
-
-
Constructor Details
-
Age
public Age() -
Age
public Age(int years, int months, int days, int hours, int minutes, int seconds)
-
-
Method Details
-
fromPanasonicString
Parses an age object from the string format used by Panasonic cameras:0031:07:15 00:00:00- Parameters:
s- The String in format0031:07:15 00:00:00.- Returns:
- The parsed Age object, or null if the value could not be parsed
-
getYears
public int getYears() -
getMonths
public int getMonths() -
getDays
public int getDays() -
getHours
public int getHours() -
getMinutes
public int getMinutes() -
getSeconds
public int getSeconds() -
toString
-
toFriendlyString
-
appendAgePart
-
equals
-
hashCode
public int hashCode()
-