> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class: AnalysisServerVersion

**Package:** `com.phoenix_int.aserver.client.v2`

**Class Hierarchy**

```java theme={null}
↳ java.lang.Object
  ↳ com.phoenix_int.aserver.client.v2.AnalysisServerVersion
```

**Implemented Interfaces**

* `java.lang.Comparable<AnalysisServerVersion>`

***

**Declaration**

```java theme={null}
public class AnalysisServerVersion
extends java.lang.Object
implements java.lang.Comparable<AnalysisServerVersion>
```

Server protocol version. Useful for determining if a server supports specific features.

## Constructor Summary

| Constructor and Description |
| - |
| `AnalysisServerVersion(int major, int minor, int build)` Constructor. |

## Method Summary

| Modifier and Type | Method and Description |
| - | - |
| `int` | `compareTo(AnalysisServerVersion o)` |
| `boolean` | `equals(java.lang.Object obj)` |
| `int` | `getBuild()` Get the build. |
| `int` | `getMajor()` Get the major version. |
| `int` | `getMinor()` Get the minor version. |
| `int` | `hashCode()` |
| `java.lang.String` | `toString()` |

### Methods inherited from class java.lang.Object

`clone`, `finalize`, `getClass`, `notify`, `notifyAll`, `wait`, `wait`, `wait`

## Constructor Detail

### AnalysisServerVersion

```java theme={null}
public AnalysisServerVersion(int major,
                             int minor,
                             int build)
```

Constructor.

**Parameters:**

* `major` - the major version
* `minor` - the minor version
* `build` - the build number

## Method Detail

### getMajor

```java theme={null}
public int getMajor()
```

Get the major version.

### getMinor

```java theme={null}
public int getMinor()
```

Get the minor version.

### getBuild

```java theme={null}
public int getBuild()
```

Get the build.

### hashCode

```java theme={null}
public int hashCode()
```

**Overrides:**

* `hashCode` in class `java.lang.Object`

### equals

```java theme={null}
public boolean equals(java.lang.Object obj)
```

**Overrides:**

* `equals` in class `java.lang.Object`

### compareTo

```java theme={null}
public int compareTo(AnalysisServerVersion o)
```

**Specified by:**

* `compareTo` in interface `java.lang.Comparable<AnalysisServerVersion>`

### toString

```java theme={null}
public java.lang.String toString()
```

**Overrides:**

* `toString` in class `java.lang.Object`
