com.drew.metadata
Class Age

java.lang.Object
  extended by 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.

Author:
Drew Noakes http://drewnoakes.com

Constructor Summary
Age(int years, int months, int days, int hours, int minutes, int seconds)
           
 
Method Summary
 boolean equals(Object o)
           
static Age fromPanasonicString(String s)
          Parses an age object from the string format used by Panasonic cameras: 0031:07:15 00:00:00
 int getDays()
           
 int getHours()
           
 int getMinutes()
           
 int getMonths()
           
 int getSeconds()
           
 int getYears()
           
 int hashCode()
           
 String toFriendlyString()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Age

public Age(int years,
           int months,
           int days,
           int hours,
           int minutes,
           int seconds)
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 format 0031: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

public String toString()
Overrides:
toString in class Object

toFriendlyString

public String toFriendlyString()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2012. All Rights Reserved.