Package com.drew.metadata
Class Age
- java.lang.Object
-
- com.drew.metadata.Age
-
public class Age extends Object
Represents an age in years, months, days, hours, minutes and seconds.Used by certain Panasonic cameras which have face recognition features.
-
-
Constructor Summary
Constructors Constructor Description Age(int years, int months, int days, int hours, int minutes, int seconds)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static AgefromPanasonicString(String s)Parses an age object from the string format used by Panasonic cameras:0031:07:15 00:00:00intgetDays()intgetHours()intgetMinutes()intgetMonths()intgetSeconds()intgetYears()inthashCode()StringtoFriendlyString()StringtoString()
-
-
-
Method Detail
-
fromPanasonicString
public static Age fromPanasonicString(String s)
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()
-
toFriendlyString
public String toFriendlyString()
-
-