01: package com.pentaho.repository.dbbased.solution;
02:
03: /**
04: * This class is used to hold the last modified date and also is used to determine deletions (when touched is false). Think of this class as a C Struct
05: *
06: * @author mbatchel
07: */
08: public class InfoHolder {
09: boolean touched;
10:
11: long lastModifiedDate;
12:
13: boolean isDirectory;
14:
15: public InfoHolder(Object lastMod, Object isDir) {
16: if (lastMod != null) {
17: lastModifiedDate = ((Long) lastMod).longValue();
18: }
19: if (isDir != null) {
20: isDirectory = ((Boolean) isDir).booleanValue();
21: }
22: }
23: }
|