Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data Transfer Hash pattern #1269

Open
iluwatar opened this issue Jul 7, 2020 · 7 comments · May be fixed by #3141
Open

Data Transfer Hash pattern #1269

iluwatar opened this issue Jul 7, 2020 · 7 comments · May be fixed by #3141

Comments

@iluwatar
Copy link
Owner

iluwatar commented Jul 7, 2020

Description:
The Data Transfer Hash design pattern is used to transfer a large amount of data between different parts of a system or across systems. This pattern uses a hash map to store data as key-value pairs, which facilitates easy data retrieval and manipulation. The primary elements of this pattern include:

  • Data Container: A hash map or dictionary to store the data.
  • Serialization/Deserialization: Methods to convert data to and from the hash map format.
  • Encapsulation: Ensuring that the data structure hides its implementation details and exposes only necessary interfaces for interaction.
  • Efficiency: Optimization for quick data access and manipulation.

References:

  1. Data Transfer Hash Design Pattern - Link to Book
  2. Project Contribution Guidelines - Github Wiki

Acceptance Criteria:

  1. Implement a hash map-based data container with appropriate methods for adding, retrieving, and removing data.
  2. Include serialization and deserialization methods for converting the data container to and from a transferable format.
  3. Ensure the implementation adheres to the project's coding standards and passes all existing unit tests.
@x418-22n
Copy link

Hello, I would work on this issue within one month.

@ohbus
Copy link
Contributor

ohbus commented Apr 19, 2021

Here you go @x418-22n

Please mention a timeline for when can we expect a PR against this issue.

@iluwatar
Copy link
Owner Author

This issue is free for taking again.

@SpaceIshtar
Copy link

Hi, I would like to give it a shot. Could you please assign it to me? I believe I could open a PR before Apr 24th.

@iluwatar
Copy link
Owner Author

iluwatar commented Jul 1, 2022

Ok @SpaceIshtar

@iluwatar
Copy link
Owner Author

@SpaceIshtar are you working on this?

@iluwatar iluwatar moved this to In Progress in Java Design Patterns project Oct 29, 2022
@iluwatar iluwatar closed this as completed Nov 9, 2022
Repository owner moved this from In Progress to Done in Java Design Patterns project Nov 9, 2022
@iluwatar iluwatar modified the milestone: 1.26.0 Nov 9, 2022
@iluwatar iluwatar reopened this Nov 9, 2022
@iluwatar iluwatar moved this from Done to Todo in Java Design Patterns project Mar 24, 2024
@Basmala27
Copy link

hello, @iluwatar can you assign this issue to me.?

Basmala27 pushed a commit to Basmala27/java-design-patterns that referenced this issue Dec 8, 2024
- Added null checks in `getData` and `removeData` methods to handle cases where the key does not exist.
- Updated tests for `addData`, `getData`, and `removeData` to ensure proper functionality.
- Improved the `displayData` method to provide clearer output.
- Fixed minor formatting and documentation issues in the `DataTransferHashMap` class.

Closes iluwatar#1269 (if the issue is related to an existing issue on GitHub)
Basmala27 added a commit to Basmala27/java-design-patterns that referenced this issue Dec 8, 2024
@iluwatar iluwatar moved this from Todo to In Progress in Java Design Patterns project Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment