Codelines

Debugging the art of software

Entries for March, 2006

Iterable Interface

The Iterable interface is a new interface that has been added in Java 5.0. Similar to the Iterator interface the Iterable interface exposes your data structure to the ‘for each’ command. Thus allowing you to perform not just the standard Iterator syntax on it, but the new collection style traversal. How? Read on.Looking at the [...]

Leave a Comment

Java 5.0 Generics - The Beauty of Autboxing and Unboxing

Finally, now I get to use Java 5.0 compliancy when compiling; last year at work I was still stuck on 1.4 for compatibility reasons. Some of the nice new features are:

Generics & auto boxing/unboxing
Enhanced for loops (.NET style)
Proper typesafe ‘enums’
A new ’static’ keyword import
Metadata

From time to time I will post examples of using some of [...]

Leave a Comment

Visual Studio Visualisers

Visualisers are just one of the nice new features to be found in Visual Studio 2005 alongside the enhanced debugger and a myriad of other things I have yet the time to explore. Visualisers however can be registered for all different types of variables.
Some visualisers come ‘built-in’ and others you can write yourself.In short, a [...]

Leave a Comment