Commit graph

2 commits

Author SHA1 Message Date
DannyS712
90f66a0362 Make UserOptionsLookup::getDefaultOption() not abstract
Instead of implementing the same thing (fetch all default options,
and if the option that we are looking for is in that array, return that
array entry, and if not, return null) in a bunch of places (DefaultOptionsLookup and StaticUserOptionsLookup do this directly,
UserOptionsManager just delegates to DefaultOptionsLookup) put
this implementation in the parent class

Change-Id: If66f806bc4839f6c1143c5e0adda726c6ed04aae
2021-05-12 21:07:14 +00:00
Gergő Tisza
680fb71b68 Add StaticUserOptionsLookup
Add a simple array-based implementation of UserOptionsLookup.
Useful for testing, and intricate enough that that each test should
not have to reimplement it individually.

Change-Id: Ibd23a7748509e1de199d19ac573741e0c2b51d2c
2020-08-03 10:30:16 +00:00