Package com.loop54
Class Loop54SettingsCollection
java.lang.Object
com.loop54.Loop54SettingsCollection
- All Implemented Interfaces:
Iterable<Map.Entry<String,Loop54Settings>>
public class Loop54SettingsCollection
extends Object
implements Iterable<Map.Entry<String,Loop54Settings>>
Class containing a named settings for the Loop54 search engine library.
-
Method Summary
Modifier and TypeMethodDescriptionadd(String instanceName, Loop54Settings settingsToAdd) Adds a named setting to the collection.Adds a named endpoint setting to the collection.static Loop54SettingsCollectioncreate()Will create and return a new, empty instance ofLoop54SettingsCollection.iterator()intsize()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
create
Will create and return a new, empty instance ofLoop54SettingsCollection.- Returns:
- New instance of
Loop54SettingsCollection.
-
add
Adds a named endpoint setting to the collection.- Parameters:
instanceName- Name of the setting instance. For example 'swedish', 'english' or 'content'.endpoint- The endpoint to affiliate with the instance.- Returns:
- The Loop54SettingsCollection instance. For chaining.
-
add
Adds a named setting to the collection.- Parameters:
instanceName- Name of the setting instance. For example 'swedish', 'english' or 'content'.settingsToAdd- The settings to affiliate with the instance.- Returns:
- The Loop54SettingsCollection instance. For chaining.
-
iterator
- Specified by:
iteratorin interfaceIterable<Map.Entry<String,Loop54Settings>>
-
size
public int size()- Returns:
- The number of settings in the collection
-