io.jmnarloch.spring.cloud.zuul.trie.Tries Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zuul-trie-matcher-spring-cloud-starter Show documentation
Show all versions of zuul-trie-matcher-spring-cloud-starter Show documentation
Spring Cloud Netflix Zuul Trie Matcher
/**
* Copyright (c) 2015 the original author or authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.jmnarloch.spring.cloud.zuul.trie;
/**
* A convenient class for instantiating the Trie tries.
*
* @author Jakub Narloch
*/
public final class Tries {
/**
* Creates new instances of {@link Tries}.
*
* Private constructor prevents from instantation outside this class.
*/
private Tries() {
// empty constructor
}
/**
* Creates new instance of {@link CharArrayTrie}.
*
* @param the element type
* @return the instance of {@link CharArrayTrie}
*/
public static CharArrayTrie newCharArrayTrie() {
return new CharArrayTrie();
}
/**
* Creates new instance of {@link CharHashMapTrie}.
*
* @param the element type
* @return the instance of {@link CharHashMapTrie}
*/
public static CharHashMapTrie newCharHashMapTrie() {
return new CharHashMapTrie();
}
/**
* Creates new instance of {@link HashMapTrie}.
*
* @param the element type
* @return the instance of {@link HashMapTrie}
*/
public static HashMapTrie newHashMapTrie() {
return new HashMapTrie();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy