Package hydra.ext.lisp.syntax
Class MapEntry
- java.lang.Object
-
- hydra.ext.lisp.syntax.MapEntry
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<MapEntry>
public class MapEntry extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<MapEntry>
A key-value pair in a map literal- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description ExpressionkeyThe key expressionstatic NameKEYstatic NameTYPE_ExpressionvalueThe value expressionstatic NameVALUE
-
Constructor Summary
Constructors Constructor Description MapEntry(Expression key, Expression value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(MapEntry other)booleanequals(java.lang.Object other)inthashCode()MapEntrywithKey(Expression key)MapEntrywithValue(Expression value)
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
-
KEY
public static final Name KEY
-
VALUE
public static final Name VALUE
-
key
public final Expression key
The key expression
-
value
public final Expression value
The value expression
-
-
Constructor Detail
-
MapEntry
public MapEntry(Expression key, Expression value)
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(MapEntry other)
- Specified by:
compareToin interfacejava.lang.Comparable<MapEntry>
-
withKey
public MapEntry withKey(Expression key)
-
withValue
public MapEntry withValue(Expression value)
-
-