com.atlassian.crowd.manager.backup
Class FileToTimestampTransformer

java.lang.Object
  extended by com.atlassian.crowd.manager.backup.FileToTimestampTransformer
All Implemented Interfaces:
com.google.common.base.Function<File,Date>

public class FileToTimestampTransformer
extends Object
implements com.google.common.base.Function<File,Date>

Transforms a File into a Date, or null if the file is not a valid automated backup file. Note: this class is stateful and not thread safe.

Since:
v2.7

Constructor Summary
FileToTimestampTransformer()
           
 
Method Summary
 Date apply(File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Function
equals
 

Constructor Detail

FileToTimestampTransformer

public FileToTimestampTransformer()
Method Detail

apply

public Date apply(File file)
Specified by:
apply in interface com.google.common.base.Function<File,Date>


Copyright © 2013 Atlassian. All Rights Reserved.