Exists (Apache Ant API)
Description: declaration: package: org.apache.tools.ant.types.resources.selectors, class: Exists

# Class Exists

java.lang.Object
org.apache.tools.ant.types.resources.selectors.Exists

All Implemented Interfaces:
  `ResourceSelector`

public class Exists extends Object implements ResourceSelector
Exists ResourceSelector.

Since:
  Ant 1.7

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Exists()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `isSelected(Resource r)`
  Return true if this Resource is selected.

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### Exists

    public Exists()

- ## Method Details

  - ### isSelected

    public boolean isSelected(Resource r)
    Return true if this Resource is selected.
    Specified by:
      `isSelected` in interface `ResourceSelector`
    Parameters:
      `r` - the Resource to check.
    Returns:
      whether the Resource was selected.