EnumSet Efficiency
EnumSet is Specialized Set which only takes Enum elements. Look at the signature of this class.
public abstract class EnumSet<E extends Enum<E>>extends AbstractSet<E>implements Cloneable, Serializable
The...
Home » Archives for October 2016
Java : Extensible Enum with Interface
in
design pattern,
enum,
etends,
extensible,
extention,
interface,
interface and Enum,
java,
opcodes,
singleton
- on October 14, 2016
- No comments
Extensible Enum with Interface
Overview
In Java Enum is a powerful
data type. Many places user uses Enum To get advantages from Enum type.
Like In a Static Factory method it wise decision to pass Enum type
rather than pass String....
Labels:
design pattern,
enum,
etends,
extensible,
extention,
interface,
interface and Enum,
java,
opcodes,
singleton
Spring Data (Part 5): Paging and Sorting
in
spring,
Spring data
- on October 13, 2016
- No comments
Paging and Sorting
Overview
When we perform bulk operations, like finding all "Person"s from the database or finding everyone based on a country, often we do the paging so that we can present a small data chunk to the end user and, in the next request,...