Package eu.danieldk.dictomaton

Examples of eu.danieldk.dictomaton.DictionaryBuilder


        private final DictionaryBuilder dictionaryBuilder;

        private final ArrayList<Long> values;

        public OrderedBuilder() {
            this.dictionaryBuilder = new DictionaryBuilder();
            this.values = new ArrayList<Long>();
        }
View Full Code Here


        /**
         * Construct a {@link ImmutableStringShortMap}.
         */
        public synchronized ImmutableStringShortMap build() throws DictionaryBuilderException {
            PerfectHashDictionary dict = new DictionaryBuilder().addAll(d_map.keySet()).buildPerfectHash(false);

            short[] values = new short[d_map.size()];

            int i = 0;
            for (short value : d_map.values())
View Full Code Here

        private final DictionaryBuilder dictionaryBuilder;

        private final ArrayList<Short> values;

        public OrderedBuilder() {
            this.dictionaryBuilder = new DictionaryBuilder();
            this.values = new ArrayList<Short>();
        }
View Full Code Here

        /**
         * Construct a {@link ImmutableStringIntMap}.
         */
        public synchronized ImmutableStringObjectMap<V> build() throws DictionaryBuilderException {
            PerfectHashDictionary dict = new DictionaryBuilder().addAll(d_map.keySet()).buildPerfectHash(false);

            @SuppressWarnings("unchecked")
            V[] values = (V[]) new Object[d_map.size()];

            int i = 0;
View Full Code Here

        private final DictionaryBuilder dictionaryBuilder;

        private final ArrayList<V> values;

        public OrderedBuilder() {
            this.dictionaryBuilder = new DictionaryBuilder();
            this.values = new ArrayList<V>();
        }
View Full Code Here

        /**
         * Construct a {@link ImmutableStringDoubleMap}.
         */
        public synchronized ImmutableStringDoubleMap build() throws DictionaryBuilderException {
            PerfectHashDictionary dict = new DictionaryBuilder().addAll(d_map.keySet()).buildPerfectHash(false);

            double[] values = new double[d_map.size()];

            int i = 0;
            for (double value : d_map.values())
View Full Code Here

        private final DictionaryBuilder dictionaryBuilder;

        private final ArrayList<Double> values;

        public OrderedBuilder() {
            this.dictionaryBuilder = new DictionaryBuilder();
            this.values = new ArrayList<Double>();
        }
View Full Code Here

    /**
     * Construct a {@link ImmutableStringStringMap}.
     */
    public synchronized ImmutableStringStringMap build() throws DictionaryBuilderException
    {
      PerfectHashDictionary keyDict = new DictionaryBuilder().addAll(d_map.keySet()).buildPerfectHash(false);
      PerfectHashDictionary valueDict = new DictionaryBuilder().addAll(new TreeSet<String>(d_map.values()))
          .buildPerfectHash(false);

      int links[] = new int[keyDict.size()];

      for (Map.Entry<String, String> entry : d_map.entrySet())
View Full Code Here

        /**
         * Construct a {@link ImmutableStringCharMap}.
         */
        public synchronized ImmutableStringCharMap build() throws DictionaryBuilderException {
            PerfectHashDictionary dict = new DictionaryBuilder().addAll(d_map.keySet()).buildPerfectHash(false);

            char[] values = new char[d_map.size()];

            int i = 0;
            for (char value : d_map.values())
View Full Code Here

        private final DictionaryBuilder dictionaryBuilder;

        private final ArrayList<Character> values;

        public OrderedBuilder() {
            this.dictionaryBuilder = new DictionaryBuilder();
            this.values = new ArrayList<Character>();
        }
View Full Code Here

TOP

Related Classes of eu.danieldk.dictomaton.DictionaryBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.