java Programming Glossary: guarantee
Sort on a string that may contain a number http://stackoverflow.com/questions/104599/sort-on-a-string-that-may-contain-a-number Is there a better way Update I don't think I can guarantee that the other numbers in the string the ones that may match..
Hashset vs Treeset http://stackoverflow.com/questions/1463284/hashset-vs-treeset like add remove and contains but offers no ordering guarantees like TreeSet. HashSet class offers constant time performance.. operations add remove contains and size . it does not guarantee that the order of elements will remain constant over time iteration.. the size to which you expect the set to grow. TreeSet guarantees log n time cost for the basic operations add remove and contains..
Why would you ever implement finalize()? http://stackoverflow.com/questions/158174/why-would-you-ever-implement-finalize is really scary since the only way to come as close to a guarantee that a Connection is closed is to implement try catch finally...
EventListenerList firing order http://stackoverflow.com/questions/2159803/eventlistenerlist-firing-order appears to be implementation advice rather than a guarantee. The chaining approach suggested by pstanton enforces the correct..
How to properly override clone method? http://stackoverflow.com/questions/2326758/how-to-properly-override-clone-method java.lang.Cloneable . If that's the case then you can guarantee that you will NEVER catch a CloneNotSupportedException . Throwing..
How can I add to List<? extends Number> data structures? http://stackoverflow.com/questions/2776975/how-can-i-add-to-list-extends-number-data-structures can't add any object to List extends T because you can't guarantee what kind of List it is really pointing to so you can't guarantee.. what kind of List it is really pointing to so you can't guarantee that the object is allowed in that List . The only guarantee.. that the object is allowed in that List . The only guarantee is that you can only read from it and you'll get a T or subclass..
What is a serialVersionUID and why should I use it? http://stackoverflow.com/questions/285793/what-is-a-serialversionuid-and-why-should-i-use-it during deserialization. Therefore to guarantee a consistent serialVersionUID value across different java compiler..
How to deal with “java.lang.OutOfMemoryError: Java heap space” error (64MB heap size) http://stackoverflow.com/questions/37335/how-to-deal-with-java-lang-outofmemoryerror-java-heap-space-error-64mb-heap about how much memory you need. In general if you can't guarantee that your program will run in some finite amount of memory perhaps..
Best practices for exception management in Java or C# http://stackoverflow.com/questions/409563/best-practices-for-exception-management-in-java-or-c-sharp or 2 deserializing a JSON object. Unfortunately I can't guarantee success for either of these tasks cut network connection malformed..
What is an efficient way to implement a singleton pattern in Java? http://stackoverflow.com/questions/70689/what-is-an-efficient-way-to-implement-a-singleton-pattern-in-java serialization machinery for free and provides an ironclad guarantee against multiple instantiation even in the face of sophisticated..
Is there a way to refer to the current type with a type variable? http://stackoverflow.com/questions/7354740/is-there-a-way-to-refer-to-the-current-type-with-a-type-variable of one's internal API only. The reason is that there is no guarantee the type parameter SELF in the above examples will actually.. MyBaseClass for SELF . Independent of that there's no guarantee self will actually return this which may or may not be an issue..
|