Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #5107
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Newsgroups | comp.lang.java.gui |
| Subject | Re: How to initialise a final static String array |
| Date | 2012-03-18 18:12 -0700 |
| Organization | Canadian Mind Products |
| Message-ID | <3v1dm75ql91vsklikc540fgdcds029mgsk@4ax.com> (permalink) |
| References | <874ntmxe92.fsf@Compaq.site> |
On Sun, 18 Mar 2012 13:52:41 +0100, Cecil Westerhof <Cecil@decebal.nl> wrote, quoted or indirectly quoted someone who said : If you want to protect individual elements of an array from being changed, you must wrap the array in a class with getters, a constructor but no setters. -- Roedy Green Canadian Mind Products http://mindprod.com It is almost impossible to keep things in synch manually. Instead: -Keep each fact in only one central database (not necessarily SQL), and access it as needed. Since there is only one copy of each fact, there is nothing to get out of synch. -Use some automated tool so that if you change a fact is one place, it automatically updates the others. -Write a sanity checker you run periodically to ensure all is consistent. This is the strategy compilers use. -Document the procedures needed to keep all in synch if you change something and rigidly and mechanically follow them.
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to initialise a final static String array Cecil Westerhof <Cecil@decebal.nl> - 2012-03-18 13:52 +0100
Re: How to initialise a final static String array Cecil Westerhof <Cecil@decebal.nl> - 2012-03-18 13:54 +0100
Re: How to initialise a final static String array Knute Johnson <nospam@knutejohnson.com> - 2012-03-18 09:50 -0700
Re: How to initialise a final static String array Lew <noone@lewscanon.com> - 2012-03-18 10:28 -0700
Re: How to initialise a final static String array Roedy Green <see_website@mindprod.com.invalid> - 2012-03-18 18:12 -0700
Re: How to initialise a final static String array Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-03-19 09:34 -0700
csiph-web