Category Archives: Groovy

PHPHOST BLOG

Web Hosting Related Articles You May Need

JavaOne 2011: What’s New in Groovy 1.8

Groovy in Action co-author Guillaume Laforge (Head of Groovy Development at SpringSource) presented “What’s New in Groovy 1.8″ (23940) in which he discussed “What’s new in Groovy 1.8″ and “What’s cooking for Groovy 1.9.” This presentation was held in P… Continue reading

Posted in Groovy, JavaOne 2011, Syndicated | Leave a comment

JavaOne 2011: What’s New in Groovy 1.8

Groovy in Action co-author Guillaume Laforge (Head of Groovy Development at SpringSource) presented “What’s New in Groovy 1.8″ (23940) in which he discussed “What’s new in Groovy 1.8″ and “What’s cooking for Groovy 1.9.” This presentation was held in P… Continue reading

Posted in Groovy, JavaOne 2011, Syndicated | Leave a comment

JavaOne 2011: Extending Java’s Reach with Groovy: Seven Scenarios

Dierk Koenig’s presentation “Extending Java’s Reach with Groovy: Seven Scenarios” was held in Market Street conference room in Parc 55 Hotel on late Monday morning and was a well-attended session. Koenig used IntelliJ IDEA for several of his demonstrat… Continue reading

Posted in Groovy, JavaOne 2011, Syndicated | Leave a comment

Groovy’s Special Words

The Java Language Keywords are words that cannot be used “as identifiers in your programs.” The Java Tutorial states regarding Java keywords, “The keywords const and goto are reserved, even though they are not currently used. true, false, and null migh… Continue reading

Posted in Groovy, Syndicated | Leave a comment

Checking for Null or Empty or White Space Only String in Java

.NET Framework 4 introduces a new method on its String class called IsNullOrWhiteSpace that checks whether a provided String is null, empty, or consists only of “white space.” This handy method is in addition to the method IsNullOrEmpty that has been a… Continue reading

Posted in Apache Commons, Groovy, Guava, Java (General), Syndicated | Leave a comment

Adding Common Methods to JAXB-Generated Classes (Groovy invokeMethod)

In two previous posts [Adding Common Methods to JAXB-Generated Java Classes (JAXB2 Basics Plugins) and Adding Common Methods to JAXB-Generated Classes (Separate Class/Groovy Categories)], I looked at using JAXB2 Basic Plugins and a separate Class (incl… Continue reading

Posted in Groovy, JAXB, Syndicated | Leave a comment

Adding Common Methods to JAXB-Generated Classes (Separate Class/Groovy Categories)

I have previously discussed using JAXB2 Basic Plugins to add common methods to JAXB-generated Java classes. In this blog post, I look at another approach for performing the same behaviors on JAXB-generated objects as these classes might normally provid… Continue reading

Posted in Groovy, Java (General), JAXB, Syndicated | Leave a comment

BigDecimal, Groovy, and the Non-terminating Decimal Expansion

Not all Java developers need the precision that BigDecimal offers. However, those who do usually don’t have to use BigDecimal for very long before running into the java.lang.ArithmeticException with message “Non-terminating decimal expansion; no exact … Continue reading

Posted in Groovy, Java (General), Syndicated | Leave a comment

Groovy, Java, and the Unix Epoch Time

The link What Every Programmer Should Know about Time was recently posted on DZone and was a highly popular link. It references the original Emil Mikulic post Time and What Programmers Should Know About It. This post and its popularity was reminder to … Continue reading

Posted in Groovy, Java (General), linux, Syndicated | Leave a comment

Use == (or !=) to Compare Java Enums

Most new Java developers quickly learn that they should generally compare Java Strings using String.equals(Object) rather than using ==. This is emphasized and reinforced to new developers repeatedly because they almost always mean to compare String co… Continue reading

Posted in Groovy, Java (General), Syndicated | Leave a comment