{"id":4256,"date":"2014-03-30T09:28:40","date_gmt":"2014-03-30T09:28:40","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/change-constants-defined-in-interface-collection-of-common-programming-errors\/"},"modified":"2014-03-30T09:28:40","modified_gmt":"2014-03-30T09:28:40","slug":"change-constants-defined-in-interface-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/change-constants-defined-in-interface-collection-of-common-programming-errors\/","title":{"rendered":"Change constants defined in interface-Collection of common programming errors"},"content":{"rendered":"<p>I have interface which hosts constants needed by my application. I would like to be able to change then during runtime, becuase they depends on various conditions. I have created small class, which will have method for handling constant. In this class I have implemented interface with constant, I have access to them but I cannot change their content. I know constants are supposed to be stable without changing, but still, is there any way how to change them?<\/p>\n<p>Thx<\/p>\n<p><strong>Edit:<\/strong><\/p>\n<p>Of course this is not from my head, I need to change ready made library, which should depend on Android manufacturer. And I am asking if there is some other way then reimplementing it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have interface which hosts constants needed by my application. I would like to be able to change then during runtime, becuase they depends on various conditions. I have created small class, which will have method for handling constant. In this class I have implemented interface with constant, I have access to them but I [&hellip;]<\/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-4256","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4256","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=4256"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4256\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4256"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}