{"id":28988409,"url":"https://github.com/matteckert/enumcollections","last_synced_at":"2025-06-24T22:03:09.866Z","repository":{"id":8353351,"uuid":"9915154","full_name":"matteckert/EnumCollections","owner":"matteckert","description":"Port of Java's EnumSet collection to C#","archived":false,"fork":false,"pushed_at":"2019-03-01T07:32:13.000Z","size":56,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-24T22:02:19.293Z","etag":null,"topics":["c-sharp","enums","enumset","nunit"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matteckert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-05-07T15:28:48.000Z","updated_at":"2022-08-27T09:41:59.000Z","dependencies_parsed_at":"2022-08-07T03:16:11.745Z","dependency_job_id":null,"html_url":"https://github.com/matteckert/EnumCollections","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/matteckert/EnumCollections","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matteckert%2FEnumCollections","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matteckert%2FEnumCollections/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matteckert%2FEnumCollections/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matteckert%2FEnumCollections/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matteckert","download_url":"https://codeload.github.com/matteckert/EnumCollections/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matteckert%2FEnumCollections/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261764296,"owners_count":23206248,"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":["c-sharp","enums","enumset","nunit"],"created_at":"2025-06-24T22:01:56.904Z","updated_at":"2025-06-24T22:03:09.859Z","avatar_url":"https://github.com/matteckert.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"![logo](logo.png) EnumCollections\n===============\n\nPort of Java's EnumSet collection to C#\n-----------------------------------\n\n### EnumSet\n\n#### Overview\n\n- Performance characteristics are similar to the [Java's EnumSet](http://docs.oracle.com/javase/7/docs/api/java/util/EnumSet.html). \n- More efficient with `Enum` types that have less than or equal to 64 values.\n- Static factory methods similar to the Java version are provided: `EnumSet.Of(Bird.Stork, ...)`\n\n#### Notes\n1. `Enum` constants defined with the same value are treated as aliases:\n\n    ```csharp\n    public enum Bird { \n        BlueJay,        // 0\n        Stork,          // 1\n        Puffin,         // 2\n        SeaParrot = 2,  // 2\n        Chicken         // 3\n    }\n\n    var a = EnumSet.Of(Bird.SeaParrot);\n    var b = EnumSet.Of(Bird.Puffin)\n    Assert.That(a, Is.EqualTo(b)));\n    ```\n\n1. When creating an empty `EnumSet`, you must specify the type:\n\n    ```csharp\n    var a = EnumSet.Of\u003cBird\u003e()\n    ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatteckert%2Fenumcollections","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatteckert%2Fenumcollections","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatteckert%2Fenumcollections/lists"}