There can be a situation where a list of objects need to be sorted a particular way .This can be easily achieved by using comparable interface. The following example shows the usage of comparable interface to sort list of snacks using comparable interface . package com.vulab.comparable.example; /** * @author jawahar * */ public class Snack […]
Archive | December, 2014
Annotations construct was introduced as a part of Java SE 5.Custom annotations are rarely used at enterprise level . By definition an annotation is a metadata that can be added to Java source code. Annotations can be added for classes, methods, variables, parameters and packages. In general annotations are tags that can be used by a utility class for […]
Congrats to Apache Hadoop Community on releasing the Hadoop 2.6 version. Yarn storage features have been upgraded in this version. See the Hadoop 2.6.0 Release Notes for details. Try it out and let us know if you find any bugs or interesting enhancements.
Pagination of search results is a common requirement for many applications .Database pagination allows you to go through a result set in manageable chunks. This is an important feature when a result set is large. Imagine if the user selects the first result of 500 results returned. Essentially 499 results were wasted. This very taxing […]