/*
- * Copyright 2011 GRNET S.A. All rights reserved.
+ * Copyright 2011-2012 GRNET S.A. All rights reserved.
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the following
folder = null;
files = null;
}
+
+ public boolean isEmpty() {
+ return (files == null || files.isEmpty()) && folder == null;
+ }
+
+ public boolean hasFiles() {
+ return files != null && !files.isEmpty();
+ }
}