@Immutable final class BasicEntry extends Object implements Array.Entry, Comparable<Array.Entry>
Array.Entry in an Array.| Constructor and Description |
|---|
BasicEntry(int index,
Value value) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Array.Entry that) |
boolean |
equals(Object obj) |
int |
getIndex()
Get the index of the entry
|
Value |
getValue()
Get the value of the entry.
|
int |
hashCode() |
String |
toString() |
private final int index
private final Value value
BasicEntry(int index,
Value value)
public int getIndex()
Array.EntrygetIndex in interface Array.Entrypublic Value getValue()
Array.EntrygetValue in interface Array.Entrypublic int compareTo(Array.Entry that)
compareTo in interface Array.EntrycompareTo in interface Comparable<Array.Entry>Copyright © 2021 JBoss by Red Hat. All rights reserved.