Skip to content

io microsphere collection DefaultEntry

github-actions[bot] edited this page Mar 24, 2026 · 3 revisions

DefaultEntry

Type: Class | Module: microsphere-java-core | Package: io.microsphere.collection | Since: 1.0.0

Source: microsphere-java-core/src/main/java/io/microsphere/collection/DefaultEntry.java

Overview

A default implementation of the Map.Entry interface, representing a key-value pair. This class provides an immutable key and a mutable value, allowing for updates to the value while keeping the same key. It is suitable for use in custom map implementations or other scenarios where a modifiable entry needs to be maintained.

Declaration

public class DefaultEntry<K, V> implements Map.Entry<K, V>

Author: Mercy

Version Information

  • Introduced in: 1.0.0
  • Current Project Version: 0.2.2-SNAPSHOT

Version Compatibility

This component is tested and compatible with the following Java versions:

Java Version Status
Java 8 ✅ Compatible
Java 11 ✅ Compatible
Java 17 ✅ Compatible
Java 21 ✅ Compatible
Java 25 ✅ Compatible

Usage

Maven Dependency

Add the following dependency to your pom.xml:

<dependency>
    <groupId>io.github.microsphere-projects</groupId>
    <artifactId>microsphere-java-core</artifactId>
    <version>${microsphere-java.version}</version>
</dependency>

Tip: Use the BOM (microsphere-java-dependencies) for consistent version management. See the Getting Started guide.

Import

import io.microsphere.collection.DefaultEntry;

API Reference

Public Methods

Method Description
getKey
getValue
setValue

See Also

  • Map.Entry

This documentation was auto-generated from the source code of microsphere-java.

Home

annotation-processor

java-annotations

java-core

java-test

jdk-tools

lang-model

Clone this wiki locally