{"id":24716871,"url":"https://github.com/samyam81/adapter_design2.0","last_synced_at":"2025-07-03T22:05:09.454Z","repository":{"id":219895456,"uuid":"750200138","full_name":"samyam81/Adapter_Design2.0","owner":"samyam81","description":"The Adapter design pattern allows incompatible interfaces to work together seamlessly. It acts as a bridge between two incompatible interfaces by converting the interface of one class into another interface that a client expects.","archived":false,"fork":false,"pushed_at":"2024-05-21T06:42:26.000Z","size":17,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-03T22:04:21.810Z","etag":null,"topics":["adapter-design-pattern","csharp","java","kotlin"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samyam81.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-30T07:15:13.000Z","updated_at":"2024-06-23T12:08:01.000Z","dependencies_parsed_at":"2024-01-30T08:29:43.827Z","dependency_job_id":"c40005dd-2fcb-424d-a80d-51d77c7ee387","html_url":"https://github.com/samyam81/Adapter_Design2.0","commit_stats":null,"previous_names":["samyam81/adapter_design2.0"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samyam81/Adapter_Design2.0","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyam81%2FAdapter_Design2.0","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyam81%2FAdapter_Design2.0/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyam81%2FAdapter_Design2.0/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyam81%2FAdapter_Design2.0/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samyam81","download_url":"https://codeload.github.com/samyam81/Adapter_Design2.0/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyam81%2FAdapter_Design2.0/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263410760,"owners_count":23462296,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adapter-design-pattern","csharp","java","kotlin"],"created_at":"2025-01-27T09:14:30.383Z","updated_at":"2025-07-03T22:05:09.409Z","avatar_url":"https://github.com/samyam81.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Adapter Design 2.0\n\nThis repository contains implementations of the Adapter Design Pattern in various programming languages. The Adapter Design Pattern allows objects with incompatible interfaces to collaborate. It acts as a bridge between two incompatible interfaces.\n\n## Contents\n\n1. [Introduction](#introduction)\n2. [Files](#files)\n3. [Usage](#usage)\n4. [Contributing](#contributing)\n\n## Introduction\n\nThe Adapter Design Pattern is a structural pattern used to allow two incompatible interfaces to work together. It is particularly useful when integrating new features into existing systems or when reusing code with incompatible interfaces. This pattern involves a single class called the adapter that connects functionalities of independent or incompatible interfaces.\n\n## Files\n\nThis repository contains implementations of the Adapter Design Pattern in the following languages:\n\n- **C#**\n  - `ChargerAdapter.cs`: Contains the C# implementation of the adapter class and related interfaces.\n  - `Charging.cs`: Implements the charging functionality using the adapter.\n  - `Program.cs`: Main entry point to demonstrate the usage of the adapter.\n\n- **Java**\n  - `ChargerAdapter.java`: Java implementation of the adapter class and related interfaces.\n  - `Charging.java`: Implements the charging functionality using the adapter.\n  - `iPhone.java`: Represents an iPhone class for demonstration purposes.\n  - `Phone.java`: Main entry point to demonstrate the usage of the adapter in Java.\n\n- **Kotlin**\n  - `ChargerAdapter.kt`: Kotlin implementation of the adapter class and related interfaces.\n  - `Charging.kt`: Implements the charging functionality using the adapter.\n  - `IPhone.kt`: Represents an iPhone class for demonstration purposes.\n  - `Main.kt`: Main entry point to demonstrate the usage of the adapter in Kotlin.\n\n## Usage\n\nTo use the Adapter Design Pattern in your project:\n\n1. Choose the appropriate implementation for your programming language from the files provided.\n2. Integrate the adapter class (`ChargerAdapter` or equivalent) into your project.\n3. Utilize the adapter to connect and enable communication between incompatible interfaces.\n\nRefer to the specific language implementation files for detailed usage instructions.\n\n## Contributing\n\nContributions to improve existing implementations or add new implementations in different languages are welcome! Please fork this repository, make your changes, and submit a pull request.\n\nContributor: [@samyam.81](https://github.com/samyam.81)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamyam81%2Fadapter_design2.0","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamyam81%2Fadapter_design2.0","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamyam81%2Fadapter_design2.0/lists"}