@Test(expected = IllegalArgumentException.class) public void setUniversalModelToNullValueThrowsIllegalArgumentException() { recognito.setUniversalModel(null); }
public synchronized void setUniversalModel(VoicePrint universalModel) { if(universalModel == null) { throw new IllegalArgumentException("The universal model may not be null"); } this.universalModelWasSetByUser.set(false); this.universalModel = universalModel; }
Recognito { public synchronized void setUniversalModel(VoicePrint universalModel) { if(universalModel == null) { throw new IllegalArgumentException("The universal model may not be null"); } this.universalModelWasSetByUser.set(false); this.universalModel = universalModel; } }
Recognito { public synchronized void setUniversalModel(VoicePrint universalModel) { if(universalModel == null) { throw new IllegalArgumentException("The universal model may not be null"); } this.universalModelWasSetByUser.set(false); this.universalModel = universalModel; } Recognito(float sampleRate);  Recognito(float sampleRate, Map<K, VoicePrint> voicePrintsByUserKey); }
Recognito { public synchronized void setUniversalModel(VoicePrint universalModel) { if(universalModel == null) { throw new IllegalArgumentException("The universal model may not be null"); } this.universalModelWasSetByUser.set(false); this.universalModel = universalModel; } Recognito(float sampleRate);  Recognito(float sampleRate, Map<K, VoicePrint> voicePrintsByUserKey); VoicePrint getUniversalModel(); synchronized void setUniversalModel(VoicePrint universalModel); synchronized VoicePrint createVoicePrint(K userKey, double[] voiceSample); VoicePrint createVoicePrint(K userKey, File voiceSampleFile); VoicePrint mergeVoiceSample(K userKey, double[] voiceSample); VoicePrint mergeVoiceSample(K userKey, File voiceSampleFile); List<MatchResult<K>> identify(double[] voiceSample); List<MatchResult<K>> identify(File voiceSampleFile); }
Recognito { public synchronized void setUniversalModel(VoicePrint universalModel) { if(universalModel == null) { throw new IllegalArgumentException("The universal model may not be null"); } this.universalModelWasSetByUser.set(false); this.universalModel = universalModel; } Recognito(float sampleRate);  Recognito(float sampleRate, Map<K, VoicePrint> voicePrintsByUserKey); VoicePrint getUniversalModel(); synchronized void setUniversalModel(VoicePrint universalModel); synchronized VoicePrint createVoicePrint(K userKey, double[] voiceSample); VoicePrint createVoicePrint(K userKey, File voiceSampleFile); VoicePrint mergeVoiceSample(K userKey, double[] voiceSample); VoicePrint mergeVoiceSample(K userKey, File voiceSampleFile); List<MatchResult<K>> identify(double[] voiceSample); List<MatchResult<K>> identify(File voiceSampleFile);  }