{"id":24716910,"url":"https://github.com/samyam81/anonymous-functions","last_synced_at":"2026-05-11T04:39:25.120Z","repository":{"id":219062313,"uuid":"748068949","full_name":"samyam81/anonymous-functions","owner":"samyam81","description":"A lambda expression in Java is a concise way to define an anonymous function that can be used as a method parameter or assigned to a variable.","archived":false,"fork":false,"pushed_at":"2024-05-21T10:09:56.000Z","size":26,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-27T09:14:32.115Z","etag":null,"topics":["cpp","csharp","functional-programming","java"],"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-25T07:55:32.000Z","updated_at":"2024-06-23T12:07:45.000Z","dependencies_parsed_at":"2024-04-16T05:23:59.248Z","dependency_job_id":"a86dd567-6bbb-4b8c-8667-a48737c51ec9","html_url":"https://github.com/samyam81/anonymous-functions","commit_stats":null,"previous_names":["samyam81/lamda_injava","samyam81/anonymous-functions"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyam81%2Fanonymous-functions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyam81%2Fanonymous-functions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyam81%2Fanonymous-functions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyam81%2Fanonymous-functions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samyam81","download_url":"https://codeload.github.com/samyam81/anonymous-functions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244932993,"owners_count":20534270,"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":["cpp","csharp","functional-programming","java"],"created_at":"2025-01-27T09:14:34.002Z","updated_at":"2026-05-11T04:39:20.057Z","avatar_url":"https://github.com/samyam81.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Java Lambda Expressions and Functional Interfaces\n\nThis repository contains Java code examples demonstrating the usage of lambda expressions and functional interfaces.\n\n## Generic Calculator\n\nThe `GenericCalculator` class showcases the usage of generic types with functional interfaces. It includes:\n- A generic `calculate` method that takes two operands and a `MathOperation` as parameters.\n- An interface `MathOperation` defining the `perform` method for arithmetic operations.\n- Implementations of addition, subtraction, multiplication, and division.\n\n## Number Filtering\n\nThe `Number` class demonstrates how to filter numbers using lambda expressions and functional interfaces. It includes:\n- A method `FilterNumbers` that takes a list of numbers and a predicate function to filter numbers.\n- Predicate functions `IsPositive` and `IsDivisibleBy3` for filtering positive numbers and numbers divisible by 3.\n\n## Vowel Counting\n\nThe `VowelMain` class showcases how to count vowels in a string using lambda expressions and Java's `Function` interface. It includes:\n- A lambda function `countVowels` to count vowels in a string.\n- Usage of the `Function` interface to apply the lambda function to the input string.\n\nThese examples demonstrate the versatility and simplicity of lambda expressions and functional interfaces in Java for various tasks such as arithmetic operations, filtering data, and text processing.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamyam81%2Fanonymous-functions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamyam81%2Fanonymous-functions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamyam81%2Fanonymous-functions/lists"}