Package org.unitConverter.unit
Class UnitDatabase.PrefixedUnitMap.PrefixedUnitEntrySet.PrefixedUnitEntry
- java.lang.Object
-
- org.unitConverter.unit.UnitDatabase.PrefixedUnitMap.PrefixedUnitEntrySet.PrefixedUnitEntry
-
- All Implemented Interfaces:
java.util.Map.Entry<java.lang.String,Unit>
- Enclosing class:
- UnitDatabase.PrefixedUnitMap.PrefixedUnitEntrySet
private static final class UnitDatabase.PrefixedUnitMap.PrefixedUnitEntrySet.PrefixedUnitEntry extends java.lang.Object implements java.util.Map.Entry<java.lang.String,Unit>
The entry for this set.- Since:
- 2019-04-14, v0.2.0
- Author:
- Adrien Hopkins
-
-
Constructor Summary
Constructors Constructor Description PrefixedUnitEntry(java.lang.String key, Unit value)
Creates thePrefixedUnitEntry
.
-
-
-
Field Detail
-
key
private final java.lang.String key
-
value
private final Unit value
-
-
Constructor Detail
-
PrefixedUnitEntry
public PrefixedUnitEntry(java.lang.String key, Unit value)
Creates thePrefixedUnitEntry
.- Parameters:
key
- keyvalue
- value- Since:
- 2019-04-14, v0.2.0
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in interfacejava.util.Map.Entry<java.lang.String,Unit>
- Overrides:
equals
in classjava.lang.Object
- Since:
- 2019-05-03
-
getKey
public java.lang.String getKey()
- Specified by:
getKey
in interfacejava.util.Map.Entry<java.lang.String,Unit>
-
getValue
public Unit getValue()
- Specified by:
getValue
in interfacejava.util.Map.Entry<java.lang.String,Unit>
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacejava.util.Map.Entry<java.lang.String,Unit>
- Overrides:
hashCode
in classjava.lang.Object
- Since:
- 2019-05-03
-
setValue
public Unit setValue(Unit value)
- Specified by:
setValue
in interfacejava.util.Map.Entry<java.lang.String,Unit>
-
toString
public java.lang.String toString()
Returns a string representation of the entry. The format of the string is the string representation of the key, then the equals (=
) character, then the string representation of the value.- Overrides:
toString
in classjava.lang.Object
- Since:
- 2019-05-03
-
-