Changeset 35719 for other-projects/the-macronizer/trunk/src/java/monogram/model/MonogramFactory.java
- Timestamp:
- 2021-11-03T15:24:04+13:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/the-macronizer/trunk/src/java/monogram/model/MonogramFactory.java
r29855 r35719 1 2 1 package monogram.model; 3 2 … … 9 8 * When the pool thread is done this it clears the pool. 10 9 * 11 * @see MonogramMode 12 * 10 * @see MonogramModel 13 11 * 14 12 * @author University of Waikato - Te Whare WÄnanga o Waikato … … 16 14 * @since 2014-11-20 17 15 */ 18 19 public class MonogramFactory { 20 16 public class MonogramFactory 17 { 21 18 private final static MonogramModel macronModel; 22 19 private final static MonogramModel doubleVowelModel; 23 private final static ListModel blackList;20 private final static ListModel blackList; 24 21 25 22 static { … … 27 24 macronModel = new MonogramModel("../data/macron", pool); 28 25 doubleVowelModel = new MonogramModel("../data/doublevowel", pool); 29 blackList = new ListModel("../data/list/blacklist.data" , pool);26 blackList = new ListModel("../data/list/blacklist.data"); 30 27 pool.clear(); 31 28 } 32 29 33 30 private MonogramFactory() { 34 // hide constructor.31 // Hide constructor. 35 32 } 36 /** monogram model for macron data (/data/macron) */ 33 34 /** monogram model for macron data (/data/macron) */ 37 35 public static MonogramModel getMacronModel() { 38 39 36 return macronModel; 40 37 } 41 /** monogram model for double vowel data (/data/doubleVowel) */ 38 39 /** Monogram model for double vowel data (/data/doubleVowel) */ 42 40 public static MonogramModel getDoubleVowelModel() { 43 41 return doubleVowelModel; 44 42 } 45 43 46 /** monogram model for black list data (/data/blacklist) */44 /** Monogram model for black list data (/data/blacklist) */ 47 45 public static ListModel getBlackList() { 48 46 return blackList; 49 }47 } 50 48 }
Note:
See TracChangeset
for help on using the changeset viewer.