i want to convert there python code to java how i can do it ?can any one help me?

__slots__='_element','_prev','_next';
def __init__(self,element,prev,next);
self._element=element;
self._prev=prev;
self._next=next;
def __init__(self);
self._heart=self._Node(None,None,None)
self._club=self.Node(None,None,None)
self._spade=self._Node(None,None,None)
self._diamond=self._Node(None,None,None)
self.trailer=self._Node(None,None,None)
self._heart._next=self._Node
self._club._prev=_self._heart
self._club._next=self.spade
self._spade._prev=self._club
self._spade._next=self._diamond
self._diamond._prev=self._spade
self._diamond._next=self._trailer
self._trailer._prev=self._diamond
self._size=0
self._heart_size=0;
self._club_size=0
self._spade_size=0
self._diamon_size=0
def__len__(self);
return self._size
dep all_of_suit(self,s);
if(s=='heart') and (self._heart_size>0);
cursor =self._heart._next
while cursor ._elemnt is not None;
yield Cursor
CROSSHAIR_CURSOR element
if(s=='club')and (self._club_size>0);
cursor=self._club._next
while cursor._element is not None;
yield cursor._element
cursor=cursor._next
if (s=='spade')and (self ._spade_size >0);
cursor=self._spade._next
while cursor ._elemnt is not None;
yield cursor ._element
cursor = cursor ._next
if (s=='diamond')and (self._diamond _size>0);
while cursor ._element is not None ;
yield Cursor .CROSSHAIR_CURSOR element
cursor = cursor ._next



}

Chris2017-05-17T18:45:55Z

Make sure the code actually runs, then put it on pastebin.com
I'm not going to help you convert that in its current state.