From: Svjatoslav Agejenko Date: Sat, 18 Oct 2014 16:51:52 +0000 (+0300) Subject: simplification of NavigationItem X-Git-Tag: svjatoslavcommons-1.8~93 X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=commitdiff_plain;h=f40003a9a809dc463492098357fac433154d1503;p=svjatoslav_commons.git simplification of NavigationItem --- diff --git a/src/main/java/eu/svjatoslav/commons/network/navigation/NavigationItem.java b/src/main/java/eu/svjatoslav/commons/network/navigation/NavigationItem.java index 76a7d07..d95ba4f 100755 --- a/src/main/java/eu/svjatoslav/commons/network/navigation/NavigationItem.java +++ b/src/main/java/eu/svjatoslav/commons/network/navigation/NavigationItem.java @@ -17,21 +17,21 @@ import java.util.Map; import eu.svjatoslav.commons.network.Locale; import eu.svjatoslav.commons.string.WildCardMatcher; -public class NavigationItem { +public class NavigationItem { private String matchingPattern; private final Map localeToTitle = new HashMap(); private final ArrayList subElements = new ArrayList(); private final NI parent; - private final N navigation; + private final Navigation navigation; private final String linkUrl; /** * CSS prefix is inherited to child menu items. */ private String cssPrefix; - public NavigationItem(final N navigation) { + public NavigationItem(final Navigation navigation) { this.navigation = navigation; parent = null; matchingPattern = null; @@ -40,7 +40,7 @@ public class NavigationItem { public NavigationItem(final NI parent, final String linkUrl, final String... titles) { - this.navigation = (N) parent.getNavigation(); + this.navigation = parent.getNavigation(); this.parent = parent; this.linkUrl = linkUrl; matchingPattern = linkUrl; @@ -82,7 +82,7 @@ public class NavigationItem { return null; } - public N getNavigation() { + public Navigation getNavigation() { return navigation; }