equal
deleted
inserted
replaced
484 numberOfNodes := 0 |
484 numberOfNodes := 0 |
485 ! ! |
485 ! ! |
486 |
486 |
487 !LinkedList methodsFor:'queries'! |
487 !LinkedList methodsFor:'queries'! |
488 |
488 |
|
489 isEmpty |
|
490 "return true, if the collection is empty" |
|
491 |
|
492 ^ firstLink isNil |
|
493 ! |
|
494 |
|
495 notEmpty |
|
496 "return true, if the collection is not empty" |
|
497 |
|
498 ^ firstLink notNil |
|
499 ! |
|
500 |
489 size |
501 size |
490 "return the size of the LinkedList i.e. the number of nodes" |
502 "return the size of the LinkedList i.e. the number of nodes" |
491 |
503 |
492 ^ numberOfNodes |
504 ^ numberOfNodes |
493 ! ! |
505 ! ! |
602 " |
614 " |
603 ! ! |
615 ! ! |
604 |
616 |
605 !LinkedList methodsFor:'testing'! |
617 !LinkedList methodsFor:'testing'! |
606 |
618 |
607 isEmpty |
|
608 "return true, if the collection is empty" |
|
609 |
|
610 ^ firstLink isNil |
|
611 ! |
|
612 |
|
613 isFixedSize |
619 isFixedSize |
614 "return true if the receiver cannot grow" |
620 "return true if the receiver cannot grow" |
615 |
621 |
616 ^ false |
622 ^ false |
617 ! |
|
618 |
|
619 notEmpty |
|
620 "return true, if the collection is not empty" |
|
621 |
|
622 ^ firstLink notNil |
|
623 ! ! |
623 ! ! |
624 |
624 |
625 !LinkedList class methodsFor:'documentation'! |
625 !LinkedList class methodsFor:'documentation'! |
626 |
626 |
627 version |
627 version |