# NamedFunction Class

> Defines a function currently in use.

- Product: Adobe PDF Library 18
- Language: Java
- Version: APDFL18.0.5PlusP2e
- HTML page: https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/NamedFunction
- Version index: https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/llms.txt

```java
class NamedFunction : Function
```

**Namespace:** `com::datalogics::PDFL`

**Inherits from:** [`Function`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Function.md)

## Description

Defines a function currently in use. A Function is a process; it takes input values and manipulates them to create output values.

**Referenced by:** [`NamedFunction`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/NamedFunction.md)

**Uses types:** [`Function`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Function.md), [`NamedFunction`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/NamedFunction.md)

## Fields

### DEFAULT

```java
static final Function com.datalogics.PDFL.Function.DEFAULT
```

*static*

The Default named function.

### IDENTITY

```java
static final Function com.datalogics.PDFL.Function.IDENTITY
```

*static*

The Identity named function, which returns its input values unchanged.

## Methods

### apply

```java
java.util.List< Double > com.datalogics.PDFL.NamedFunction.apply(java.util.List< Double > args)
```

**Parameters**

- `args` (`java.util.List< Double >`): input values for the function. The number of input values must agree with the number of inputs the function takes.

**Returns:** `java.util.List< Double >`

a list of the result values from the function

Apply the function to supplied input values.

For Identity functions, this returns the same inputs. Not defined for any other kinds of named functions.

### delete

```java
synchronized void com.datalogics.PDFL.Function.delete(Boolean disposing)
```

*protected*

**Parameters**

- `disposing` (`Boolean`)

**Returns:** `synchronized void`

### delete

```java
synchronized void com.datalogics.PDFL.NamedFunction.delete()
```

**Returns:** `synchronized void`

### equals

```java
boolean com.datalogics.PDFL.NamedFunction.equals(Object rhs)
```

**Parameters**

- `rhs` (`Object`)

**Returns:** `boolean`

### finalize

```java
void com.datalogics.PDFL.NamedFunction.finalize()
```

*protected*

**Returns:** `void`

### getDomain

```java
java.util.List< Double > com.datalogics.PDFL.NamedFunction.getDomain()
```

**Returns:** `java.util.List< Double >`

The domain of the function. 2 * m elements, where m is the number of inputs to the function.

Throws a 'not implemented' exception for named functions.

### getNInputs

```java
int com.datalogics.PDFL.NamedFunction.getNInputs()
```

**Returns:** `int`

The number of inputs to the function.Throws a 'not implemented' exception for named functions.

### getNOutputs

```java
int com.datalogics.PDFL.NamedFunction.getNOutputs()
```

**Returns:** `int`

The number of outputs from the function.Throws a 'not implemented' exception for named functions.

### getName

```java
String com.datalogics.PDFL.NamedFunction.getName()
```

**Returns:** `String`

The name of the function.

### getRange

```java
java.util.List< Double > com.datalogics.PDFL.NamedFunction.getRange()
```

**Returns:** `java.util.List< Double >`

The range of the function. 2 * n elements, where n is the number of outputs from the function.

Throws a 'not implemented' exception for named functions.

### setDomain

```java
void com.datalogics.PDFL.NamedFunction.setDomain(java.util.List< Double > domain)
```

**Parameters**

- `domain` (`java.util.List< Double >`)

**Returns:** `void`

The domain of the function. 2 * m elements, where m is the number of inputs to the function.

Throws a 'not implemented' exception for named functions.

### setRange

```java
void com.datalogics.PDFL.NamedFunction.setRange(java.util.List< Double > range)
```

**Parameters**

- `range` (`java.util.List< Double >`)

**Returns:** `void`

The range of the function. 2 * n elements, where n is the number of outputs from the function.

Throws a 'not implemented' exception for named functions.

### toString

```java
String com.datalogics.PDFL.NamedFunction.toString()
```

**Returns:** `String`

The name of this NamedFunction.

Convert the function to a displayable string.
