Package gov.nih.mipav.model.file
Class MetadataExtractor.Age
- java.lang.Object
-
- gov.nih.mipav.model.file.MetadataExtractor.Age
-
- Enclosing class:
- MetadataExtractor
public class MetadataExtractor.Age extends java.lang.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 https://drewnoakes.com
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
appendAgePart(java.lang.StringBuilder result, int num, java.lang.String singularName)
boolean
equals(java.lang.Object o)
MetadataExtractor.Age
fromPanasonicString(java.lang.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()
java.lang.String
toFriendlyString()
java.lang.String
toString()
-
-
-
Method Detail
-
fromPanasonicString
public MetadataExtractor.Age fromPanasonicString(java.lang.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()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toFriendlyString
public java.lang.String toFriendlyString()
-
appendAgePart
private void appendAgePart(java.lang.StringBuilder result, int num, java.lang.String singularName)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-