Skip to content

Instantly share code, notes, and snippets.

View prietopa's full-sized avatar

Jose Manuel Prieto prietopa

View GitHub Profile
@prietopa
prietopa / CrudList.java
Created June 1, 2013 08:52
CRUD con List, implementarlo con Collection<?>
package net.josemanuel.prietopalacios.util;
import java.util.ArrayList;
import java.util.List;
public class CrudList<T> {
public List<T> create(){
return new ArrayList<T>();
}
@prietopa
prietopa / Utils.java
Last active December 17, 2015 21:49
Java utils
public class Utils{
public boolean isStrBlank(String str) {
if (str == null) {
return true;
} else if (str.equals("")) {
return true;
} else if (str.trim().isEmpty()) {
return true;
} else {