Ejemplo n.º 1
0
    Root(INodeDirectory other) {
      // Always preserve ACL, XAttr.
      super(
          other,
          false,
          Lists.newArrayList(
                  Iterables.filter(
                      Arrays.asList(other.getFeatures()),
                      new Predicate<Feature>() {

                        @Override
                        public boolean apply(Feature input) {
                          if (AclFeature.class.isInstance(input)
                              || XAttrFeature.class.isInstance(input)) {
                            return true;
                          }
                          return false;
                        }
                      }))
              .toArray(new Feature[0]));
    }