private boolean filter(Item item) { return !(item instanceof Actionable) || !defaultBranchOnly || ((Actionable) item).getAction(PrimaryInstanceMetadataAction.class) != null; }
/** * @param parent the parent object of this action. * @see #getParent(). */ AbstractGcsUploadReport(Actionable parent) { this.parent = checkNotNull(parent); }
/** * @return the parent object of this action. For a build action, * this is the containing build. For a project action, this is the * containing project. */ public Actionable getParent() { return parent; }