---
title: "Operation"
url: "https://reference.aspose.com/pdf/java/com.aspose.pdf.comparison/operation/"
product: "Aspose.PDF for Java API Reference"
description: "Represents a difference operation type."
---

**Inheritance:**
java.lang.Object, java.lang.Enum < Operation > com.aspose.pdf.comparison.Operation, java.lang.Enum < Operation >, com.aspose.pdf.comparison.Operation

**All Implemented Interfaces:**
Serializable, Comparable < Operation >

```
public enum Operation extends Enum < Operation >
```

Represents a difference operation type.

## Fields

| Field | Description |
| --- | --- |
| [Delete](#Delete) | The delete operation. |
| [Equal](#Equal) | The equal operation. |
| [Insert](#Insert) | The insert operation. |

## Methods

| Method | Description |
| --- | --- |
| [getByValue](#getByValue-int-) |  |
| [getValue](#getValue--) |  |
| [valueOf](#valueOf-java.lang.String-) | Returns the enum constant of this type with the specified name. |
| [values](#values--) | Returns an array containing the constants of this enum type, in the order they are declared. |

### Delete {#Delete}
```
public static final Operation Delete
```

The delete operation.

### Equal {#Equal}
```
public static final Operation Equal
```

The equal operation.

### Insert {#Insert}
```
public static final Operation Insert
```

The insert operation.

### getByValue {#getByValue-int-}
```
public static Operation getByValue(int value)
```



**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value |  |  |

### getValue {#getValue--}
```
public int getValue()
```



### valueOf {#valueOf-java.lang.String-}
Returns the enum constant of this type with the specified name.

### values {#values--}
```
public static Operation [] values()
```

Returns an array containing the constants of this enum type, in the order they are declared.

**Returns:**
an array containing the constants of this enum type, in the order they are declared
