Index

A B C D E F G H I K L M N O R S T V 
All Classes and Interfaces|All Packages

A

add(String, T) - Method in class org.naviqore.utils.search.SearchIndexBuilder
Adds a key-value pair to the builder.
addLocation(T) - Method in class org.naviqore.utils.spatial.index.KDTreeBuilder
 
addLocations(Collection<T>) - Method in class org.naviqore.utils.spatial.index.KDTreeBuilder
 

B

build() - Method in class org.naviqore.utils.search.SearchIndexBuilder
Builds the SearchIndex by compressing the underlying Trie.
build() - Method in class org.naviqore.utils.spatial.index.KDTreeBuilder
 
builder() - Static method in class org.naviqore.utils.search.SearchIndex
 

C

CartesianCoordinate - Class in org.naviqore.utils.spatial
 
CartesianCoordinate(double, double) - Constructor for class org.naviqore.utils.spatial.CartesianCoordinate
 
clear() - Method in class org.naviqore.utils.cache.EvictionCache
Clears the cache, removing all key-value mappings.
clear() - Method in class org.naviqore.utils.cache.ValueObjectCache
Clear the cache.
compareTo(GeoCoordinate) - Method in record class org.naviqore.utils.spatial.GeoCoordinate
 
CompressedTrie<T> - Class in org.naviqore.utils.search
A trie data structure that compresses the edges.
CompressedTrie() - Constructor for class org.naviqore.utils.search.CompressedTrie
 
computeIfAbsent(K, Supplier<V>) - Method in class org.naviqore.utils.cache.EvictionCache
If the specified key is not already associated with a value (or is mapped to null), attempts to compute its value using the given supplier and enters it into this cache.
CONTAINS - Enum constant in enum class org.naviqore.utils.search.SearchIndex.SearchStrategy
 
Coordinate - Interface in org.naviqore.utils.spatial
This interface represents a generic 2D coordinate.
Coordinate.Axis - Enum Class in org.naviqore.utils.spatial
The axes of a 2D coordinate system.

D

distanceTo(double, double) - Method in class org.naviqore.utils.spatial.CartesianCoordinate
 
distanceTo(double, double) - Method in interface org.naviqore.utils.spatial.Coordinate
Calculates the distance to another point specified by its components.
distanceTo(double, double) - Method in record class org.naviqore.utils.spatial.GeoCoordinate
 
distanceTo(Coordinate) - Method in class org.naviqore.utils.spatial.CartesianCoordinate
 
distanceTo(Coordinate) - Method in interface org.naviqore.utils.spatial.Coordinate
Calculates the distance to another Coordinate object.
distanceTo(Coordinate) - Method in record class org.naviqore.utils.spatial.GeoCoordinate
Calculates the distance to another Coordinates object using the Haversine formula.
downloadTo(Path, String, boolean) - Method in class org.naviqore.utils.network.FileDownloader
Downloads a file to the specified directory with the given file name.

E

ENDS_WITH - Enum constant in enum class org.naviqore.utils.search.SearchIndex.SearchStrategy
 
equals(Object) - Method in class org.naviqore.utils.spatial.CartesianCoordinate
 
equals(Object) - Method in record class org.naviqore.utils.spatial.GeoCoordinate
Indicates whether some other object is "equal to" this one.
EvictionCache<K,V> - Class in org.naviqore.utils.cache
A generic cache that supports LRU (Least Recently Used) and MRU (Most Recently Used) eviction strategies.
EvictionCache(int, EvictionCache.Strategy) - Constructor for class org.naviqore.utils.cache.EvictionCache
Constructs a new EvictionCache with the specified size and eviction strategy.
EvictionCache.Strategy - Enum Class in org.naviqore.utils.cache
Enum representing the eviction strategy.
EXACT - Enum constant in enum class org.naviqore.utils.search.SearchIndex.SearchStrategy
 

F

FileDownloader - Class in org.naviqore.utils.network
Downloading files from a specified URL.
FileDownloader(String) - Constructor for class org.naviqore.utils.network.FileDownloader
Constructs a new FileDownloader for the specified URL.
FIRST - Enum constant in enum class org.naviqore.utils.spatial.Coordinate.Axis
 

G

GeoCoordinate - Record Class in org.naviqore.utils.spatial
 
GeoCoordinate(double, double) - Constructor for record class org.naviqore.utils.spatial.GeoCoordinate
Creates an instance of a GeoCoordinate record class.
getChildren() - Method in interface org.naviqore.utils.search.Trie.Node
Retrieves all child nodes of this node.
getComponent(Coordinate.Axis) - Method in interface org.naviqore.utils.spatial.Coordinate
Gets the coordinate component based on the specified Axis.
getCoordinate() - Method in interface org.naviqore.utils.spatial.Location
Gets the coordinate that defines this location.
getFirstComponent() - Method in class org.naviqore.utils.spatial.CartesianCoordinate
 
getFirstComponent() - Method in interface org.naviqore.utils.spatial.Coordinate
Examples for the first component are latitude or X coordinate.
getFirstComponent() - Method in record class org.naviqore.utils.spatial.GeoCoordinate
 
getNodes() - Method in class org.naviqore.utils.search.CompressedTrie
 
getNodes() - Method in interface org.naviqore.utils.search.Trie
Retrieves all nodes currently in the Trie.
getNumberOfEntries() - Method in class org.naviqore.utils.cache.EvictionCache
Returns the current number of entries in the cache.
getOrAdd(T) - Method in class org.naviqore.utils.cache.ValueObjectCache
Retrieves the value from the cache or adds it if it does not exist.
getSecondComponent() - Method in class org.naviqore.utils.spatial.CartesianCoordinate
 
getSecondComponent() - Method in interface org.naviqore.utils.spatial.Coordinate
Examples for the first component are longitude or Y coordinate.
getSecondComponent() - Method in record class org.naviqore.utils.spatial.GeoCoordinate
 
getValues() - Method in interface org.naviqore.utils.search.Trie.Node
Retrieves all values stored in this node.

H

hashCode() - Method in record class org.naviqore.utils.spatial.GeoCoordinate
Returns a hash code value for this object.

I

insert(String, T) - Method in class org.naviqore.utils.search.CompressedTrie
 
insert(String, T) - Method in interface org.naviqore.utils.search.Trie
Inserts a value into the Trie associated with a specific key.
isCached(K) - Method in class org.naviqore.utils.cache.EvictionCache
Checks if the specified key is present in the cache.

K

KDTree<T> - Class in org.naviqore.utils.spatial.index
A k-dimensional tree (k-d tree) for fast, efficient proximity searches.
KDTree() - Constructor for class org.naviqore.utils.spatial.index.KDTree
 
KDTreeBuilder<T> - Class in org.naviqore.utils.spatial.index
 
KDTreeBuilder() - Constructor for class org.naviqore.utils.spatial.index.KDTreeBuilder
 

L

latitude() - Method in record class org.naviqore.utils.spatial.GeoCoordinate
Returns the value of the latitude record component.
Location<T> - Interface in org.naviqore.utils.spatial
A location in a generic spatial coordinate system.
longitude() - Method in record class org.naviqore.utils.spatial.GeoCoordinate
Returns the value of the longitude record component.
LRU - Enum constant in enum class org.naviqore.utils.cache.EvictionCache.Strategy
 

M

MRU - Enum constant in enum class org.naviqore.utils.cache.EvictionCache.Strategy
 

N

nearestNeighbour(double, double) - Method in class org.naviqore.utils.spatial.index.KDTree
Finds the nearest neighbour to a coordinate specified by its components.
nearestNeighbour(Coordinate) - Method in class org.naviqore.utils.spatial.index.KDTree
Finds the nearest neighbour to a given coordinate.
nearestNeighbour(T) - Method in class org.naviqore.utils.spatial.index.KDTree
Finds the nearest neighbour to a given location.

O

org.naviqore.utils.cache - package org.naviqore.utils.cache
 
org.naviqore.utils.network - package org.naviqore.utils.network
 
org.naviqore.utils.search - package org.naviqore.utils.search
 
org.naviqore.utils.spatial - package org.naviqore.utils.spatial
 
org.naviqore.utils.spatial.index - package org.naviqore.utils.spatial.index
 

R

rangeSearch(double, double, double) - Method in class org.naviqore.utils.spatial.index.KDTree
Performs a range search to find all locations within a certain radius of a coordinate specified by its components.
rangeSearch(Coordinate, double) - Method in class org.naviqore.utils.spatial.index.KDTree
Performs a range search to find all locations within a certain radius of a center coordinate.
rangeSearch(T, double) - Method in class org.naviqore.utils.spatial.index.KDTree
Performs a range search to find all locations within a certain radius of a center location.

S

search(String, SearchIndex.SearchStrategy) - Method in class org.naviqore.utils.search.SearchIndex
Searches for values matching the query and the search strategy.
SearchIndex<T> - Class in org.naviqore.utils.search
SearchIndex class for indexing strings and their associated objects.
SearchIndex() - Constructor for class org.naviqore.utils.search.SearchIndex
 
SearchIndex.SearchStrategy - Enum Class in org.naviqore.utils.search
 
SearchIndexBuilder<T> - Class in org.naviqore.utils.search
Builder class for creating a SearchIndex with key-value pairs.
SearchIndexBuilder() - Constructor for class org.naviqore.utils.search.SearchIndexBuilder
 
SECOND - Enum constant in enum class org.naviqore.utils.spatial.Coordinate.Axis
 
size() - Method in class org.naviqore.utils.search.CompressedTrie
 
size() - Method in interface org.naviqore.utils.search.Trie
Gets the number of unique keys in the Trie.
STARTS_WITH - Enum constant in enum class org.naviqore.utils.search.SearchIndex.SearchStrategy
 
startsWith(String) - Method in class org.naviqore.utils.search.CompressedTrie
 
startsWith(String) - Method in interface org.naviqore.utils.search.Trie
Searches for all values associated with keys that start with the given prefix.

T

toString() - Method in class org.naviqore.utils.spatial.CartesianCoordinate
 
toString() - Method in record class org.naviqore.utils.spatial.GeoCoordinate
Returns a string representation of this record class.
Trie<T> - Interface in org.naviqore.utils.search
Trie data structure for storing values with associated string keys, which supports inserting values and searching by prefix.
Trie.Node<V> - Interface in org.naviqore.utils.search
Node within the Trie structure, containing a list of children and values.
trimToSize() - Method in class org.naviqore.utils.search.CompressedTrie
Reduces the memory footprint by trimming the capacity of node internal data structures.

V

ValueObjectCache<T> - Class in org.naviqore.utils.cache
A generic cache for immutable value objects.
ValueObjectCache() - Constructor for class org.naviqore.utils.cache.ValueObjectCache
 
valueOf(String) - Static method in enum class org.naviqore.utils.cache.EvictionCache.Strategy
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class org.naviqore.utils.search.SearchIndex.SearchStrategy
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class org.naviqore.utils.spatial.Coordinate.Axis
Returns the enum constant of this class with the specified name.
values() - Static method in enum class org.naviqore.utils.cache.EvictionCache.Strategy
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class org.naviqore.utils.search.SearchIndex.SearchStrategy
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class org.naviqore.utils.spatial.Coordinate.Axis
Returns an array containing the constants of this enum class, in the order they are declared.
A B C D E F G H I K L M N O R S T V 
All Classes and Interfaces|All Packages