{"id":69892,"library":"newtype-2-12","title":"Newtype (Scala 2.12)","description":"A Scala library providing zero-cost newtype wrappers for type safety without runtime overhead, compiled for Scala 2.12.","status":"active","version":"0.4.4","language":"java","source_language":null,"source_url":"https://github.com/estatico/scala-newtype","tags":["scala","newtype","type-safety","zero-cost"],"install":[{"cmd":"<dependency>\n  <groupId>io.estatico</groupId>\n  <artifactId>newtype_2.12</artifactId>\n  <version>0.4.4</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'io.estatico:newtype_2.12:0.4.4'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"NewType","correct":"io.estatico.newtype.NewType"}],"quickstart":{"code":"import io.estatico.newtype.NewType;\n\npublic class Example {\n    public static void main(String[] args) {\n        NewType<String> myType = NewType.apply(\"hello\");\n        System.out.println(myType.value());\n    }\n}","lang":"java","description":"Minimal example showing how to create and use a newtype wrapper."},"warnings":[{"fix":"Use the artifact for your Scala version (e.g., newtype_2.13 for Scala 2.13).","message":"This library is for Scala 2.12; ensure your project uses the correct Scala version.","severity":"breaking","affected_versions":">=0.4.0"}],"env_vars":null,"search_vec":"'2.12':3,22 'compil':19 'cost':10,30 'librari':6 'newtyp':1,11,24 'overhead':18 'provid':7 'runtim':17 'safeti':15,27 'scala':2,5,21,23 'type':14,26 'type-safeti':25 'without':16 'wrapper':12 'zero':9,29 'zero-cost':8,28","created_at":"2026-06-17T18:07:00.988392+00:00","updated_at":"2026-06-17T18:07:00.988392+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/estatico/scala-newtype","github":"https://github.com/estatico/scala-newtype","docs":"https://appdoc.app/artifact/io.estatico/newtype_2.12/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}