{"id":4254,"date":"2014-03-30T09:26:26","date_gmt":"2014-03-30T09:26:26","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/how-to-build-interface-for-such-enum-collection-of-common-programming-errors\/"},"modified":"2014-03-30T09:26:26","modified_gmt":"2014-03-30T09:26:26","slug":"how-to-build-interface-for-such-enum-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/how-to-build-interface-for-such-enum-collection-of-common-programming-errors\/","title":{"rendered":"How to build interface for such enum-Collection of common programming errors"},"content":{"rendered":"<p>Enums already have a valueOf() (your find method) method. And &#8220;toString()&#8221; is a java.lang.Object method, so, every class will have that, in other words, you can&#8217;t force it! I can&#8217;t see the value of enforcing a constructor since different enums could have different initializations.<\/p>\n<p>Kind Regards<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Enums already have a valueOf() (your find method) method. And &#8220;toString()&#8221; is a java.lang.Object method, so, every class will have that, in other words, you can&#8217;t force it! I can&#8217;t see the value of enforcing a constructor since different enums could have different initializations. Kind Regards<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4254","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4254","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4254"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4254\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4254"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}