[MAGNOLIA-4797] NodeUtil.getSiblings() methods to simplify manipulation with nodes when building menus and other structures Created: 24/Jan/13  Updated: 19/Feb/13  Resolved: 04/Feb/13

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: None
Fix Version/s: 4.5.8

Type: Improvement Priority: Neutral
Reporter: Roman Kovařík Assignee: Roman Kovařík
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
dependency
is depended upon by MGNLFORM-147 Previous *and* next steps of a form s... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Release notes required:
Yes

 Description   

Implement NodeUtil.getSiblingsXXX(...) methods:

  • Iterable<Node> getSiblings(Node)
  • Iterable<Node> getSiblingsBefore(Node)
  • Iterable<Node> getSiblingsAfter(Node)
  • Iterable<Node> getSiblings(Node, NodeType)
  • Iterable<Node> getSiblingsBefore(Node, NodeType)
  • Iterable<Node> getSiblingsAfter(Node, NodeType)
  • Iterable<Node> getSiblingsBefore(Node, Predicate)
  • Iterable<Node> getSiblingsAfter(Node, Predicate)


 Comments   
Comment by Roman Kovařík [ 25/Jan/13 ]

Use Iterable instead of List

Generated at Mon Feb 12 03:59:08 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.