public void setNext(PokerChain forma) { if (next == null) { next = forma; } else { next.setNext(forma); } }