Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/spring-projects/spring-data-commons
/ functions
Functions
9,531 in github.com/spring-projects/spring-data-commons
⨍
Functions
9,531
◇
Types & classes
2,574
↓ 591 callers
Method
isTrue
A {@link Predicate} that yields always {@literal true}. @return a {@link Predicate} that yields always {@literal true}.
src/main/java/org/springframework/data/util/Predicates.java:67
↓ 415 callers
Method
get
()
src/main/java/org/springframework/data/util/Streamable.java:216
↓ 393 callers
Method
isFalse
A {@link Predicate} that yields always {@literal false}. @return a {@link Predicate} that yields always {@literal false}.
src/main/java/org/springframework/data/util/Predicates.java:76
↓ 320 callers
Method
of
Create a new {@link Lock} adapter for the given {@link java.util.concurrent.locks.Lock delegate}. @param delegate must not be {@literal null}. @retur
src/main/java/org/springframework/data/util/Lock.java:55
↓ 309 callers
Method
add
Adds the given distance to the current one. The resulting {@link Distance} will be in the same metric as the current one. @param other must not be {@
src/main/java/org/springframework/data/geo/Distance.java:145
↓ 302 callers
Method
contains
Returns whether the given path is contained in the current {@link PersistentPropertyPaths}. @param path must not be {@literal null}. @return
src/main/java/org/springframework/data/mapping/PersistentPropertyPaths.java:47
↓ 298 callers
Method
format
(Date date, String format)
src/test/java/org/springframework/data/convert/Jsr310ConvertersUnitTests.java:193
↓ 296 callers
Method
getMethod
@return the method for which the parameter source is defined.
src/main/java/org/springframework/data/repository/query/ParametersSource.java:100
↓ 289 callers
Method
when
Add a conditional statement to the builder if the condition <b>is</b> met. @param state the condition to evaluate. @return a {@link ConditionalStatem
src/main/java/org/springframework/data/javapoet/LordOfTheStrings.java:600
↓ 235 callers
Method
getType
Returns the type of the underlying vector source. @return the type of the underlying vector source.
src/main/java/org/springframework/data/domain/Vector.java:133
↓ 231 callers
Method
of
Creates a new {@link TypeInformation} from the given {@link ResolvableType}. @param type must not be {@literal null}. @return will never be {@literal
src/main/java/org/springframework/data/core/TypeInformation.java:59
↓ 222 callers
Method
getClass
(BeanDefinition definition)
src/main/java/org/springframework/data/repository/config/RepositoryBeanDefinitionReader.java:203
↓ 217 callers
Method
isEmpty
Returns {@literal true} if this window contains no elements. @return {@literal true} if this window contains no elements
src/main/java/org/springframework/data/domain/Window.java:73
↓ 187 callers
Method
getName
Return the name of the scoring function. <p> Typically used for display or configuration purposes. @return the identifying name of this scoring funct
src/main/java/org/springframework/data/domain/ScoringFunction.java:85
↓ 175 callers
Method
size
Returns the number of elements in this window. @return the number of elements in this window.
src/main/java/org/springframework/data/domain/Window.java:66
↓ 173 callers
Method
stream
Creates a non-parallel {@link Stream} of the underlying {@link Iterable}. @return will never be {@literal null}.
src/main/java/org/springframework/data/util/Streamable.java:86
↓ 159 callers
Method
verify
Callback method to trigger validation of the {@link PersistentEntity}. As {@link MutablePersistentEntity} is not immutable there might be some verific
src/main/java/org/springframework/data/mapping/model/MutablePersistentEntity.java:55
↓ 151 callers
Method
map
Returns a new {@link Page} with the content of the current one mapped by the given {@link Function}. @param converter must not be {@literal null}. @r
src/main/java/org/springframework/data/domain/Page.java:70
↓ 149 callers
Method
isAssignableFrom
Returns if the current {@link TypeInformation} can be safely assigned to the given one. Mimics semantics of {@link Class#isAssignableFrom(Class)} but
src/main/java/org/springframework/data/core/TypeInformation.java:346
↓ 134 callers
Method
next
Returns the {@link Pageable} requesting the next {@link Page}. @return the {@link Pageable} requesting the next {@link Page}.
src/main/java/org/springframework/data/domain/Pageable.java:133
↓ 127 callers
Method
build
Build the {@link CodeBlock} from the current state of the builder. @return the constructed {@link CodeBlock}.
src/main/java/org/springframework/data/javapoet/LordOfTheStrings.java:551
↓ 127 callers
Method
isPresent
Determines whether a bean definition identified by the given, required {@link String name} is present. @return {@literal true} if the bean definition
src/main/java/org/springframework/data/aot/AotContext.java:351
↓ 125 callers
Method
getType
Returns the resolved Java type of this entity. @return The underlying Java class for this entity. Never {@literal null}.
src/main/java/org/springframework/data/mapping/PersistentEntity.java:232
↓ 121 callers
Method
isNull
Returns true if this array has no value at {@code index}, or if its value is the {@literal null} reference or {@link JSONObject#NULL}. @param index t
src/main/java/org/springframework/data/repository/aot/generate/JSONArray.java:278
↓ 115 callers
Method
getProperty
Returns the property information for the property with the given name. Supports property traversal through dot notation. @param property @return
src/main/java/org/springframework/data/core/TypeInformation.java:137
↓ 114 callers
Method
iterator
Returns an {@link Iterator Iterator of PropertyPath} that iterates over all property path segments. For example: <pre class="code"> PropertyPath path
src/main/java/org/springframework/data/core/PropertyPath.java:230
↓ 112 callers
Method
from
Construct a {@link Window}. @param items the list of data. @param positionFunction the list of data. @return the {@link Window}.
src/main/java/org/springframework/data/domain/Window.java:45
↓ 111 callers
Method
by
Creates a new {@link Sort} for the given properties. @param properties must not be {@literal null}. @return {@link Sort} for the given properties.
src/main/java/org/springframework/data/domain/Sort.java:90
↓ 109 callers
Method
filter
Returns a new {@link Streamable} that will apply the given filter {@link Predicate} to the current one. @param predicate must not be {@literal null}.
src/main/java/org/springframework/data/util/Streamable.java:125
↓ 105 callers
Method
getName
The entity name including any package prefix. @return must never return {@literal null}.
src/main/java/org/springframework/data/mapping/PersistentEntity.java:45
↓ 102 callers
Method
getRequiredPersistentEntity
Returns a required {@link PersistentEntity} for the given {@link Class}. Will throw {@link IllegalArgumentException} for types that are considered sim
src/main/java/org/springframework/data/mapping/context/MappingContext.java:73
↓ 101 callers
Method
addAll
Concatenate elements into the builder with a delimiter. @param elements the elements to concatenate. @param delim the delimiter to use between elemen
src/main/java/org/springframework/data/javapoet/LordOfTheStrings.java:656
↓ 97 callers
Method
formatted
(Temporal expected, String format)
src/test/java/org/springframework/data/convert/Jsr310ConvertersUnitTests.java:181
↓ 97 callers
Method
put
Appends {@code value} to the end of this array. @param value the value @return this array.
src/main/java/org/springframework/data/repository/aot/generate/JSONArray.java:137
↓ 95 callers
Method
getName
()
src/test/java/org/springframework/data/web/config/SampleController.java:58
↓ 95 callers
Method
of
Creates a new {@code Lazy} to produce an object lazily. @param <T> the type of which to produce an object of eventually. @param supplier the {@link S
src/main/java/org/springframework/data/util/Lazy.java:76
↓ 94 callers
Method
toString
()
src/test/java/org/springframework/data/repository/core/support/RepositoryMethodInvokerUnitTests.java:397
↓ 93 callers
Method
orElse
Returns the value of the lazy computation or the given default value in case the computation yields {@literal null}. @param other the value to be ret
src/main/java/org/springframework/data/util/Lazy.java:188
↓ 93 callers
Method
toDotPath
Returns the {@code PropertyPath} in dot notation. @return the {@code PropertyPath} in dot notation.
src/main/java/org/springframework/data/core/PropertyPath.java:193
↓ 90 callers
Method
empty
Creates a new empty {@link Page}. @since 2.0
src/main/java/org/springframework/data/domain/Page.java:34
↓ 90 callers
Method
equals
(@Nullable Object obj)
src/main/java/org/springframework/data/mapping/model/Property.java:216
↓ 90 callers
Method
get
()
src/main/java/org/springframework/data/repository/util/QueryExecutionConverters.java:294
↓ 88 callers
Method
addParameter
Add constructor parameter and create a field storing its value. @param parameterName name of the parameter. @param type parameter type.
src/main/java/org/springframework/data/repository/aot/generate/AotRepositoryConstructorBuilder.java:43
↓ 83 callers
Method
forEach
Performs the given action for each element found while scanning. @param action must not be {@literal null}.
src/main/java/org/springframework/data/util/TypeScanner.java:139
↓ 82 callers
Method
getClassLoader
Returns the {@link ClassLoader} used by this {@link AotContext} to resolve {@link Class types}. By default, this is the same {@link ClassLoader} used
src/main/java/org/springframework/data/aot/AotContext.java:150
↓ 82 callers
Method
toList
Creates a new, unmodifiable {@link List}. @return will never be {@literal null}. @since 2.2
src/main/java/org/springframework/data/util/Streamable.java:202
↓ 81 callers
Method
hasNext
Returns if there is a next {@link Slice}. @return if there is a next {@link Slice}.
src/main/java/org/springframework/data/domain/Slice.java:94
↓ 81 callers
Method
map
Apply a {@link Function} to a reactive type. @param wrapper the reactive type, must not be {@literal null}. @param function the converter, must not b
src/main/java/org/springframework/data/repository/util/ReactiveWrapperConverters.java:251
↓ 79 callers
Method
of
Creates a new unsorted {@link PageRequest}. @param pageNumber zero-based page number, must not be negative. @param pageSize the size of the page to b
src/main/java/org/springframework/data/domain/PageRequest.java:64
↓ 78 callers
Method
of
Create a new parameter source for the given {@link Method}. @param method the method to use. @return a new parameter source for the given {@link Meth
src/main/java/org/springframework/data/repository/query/ParametersSource.java:39
↓ 78 callers
Method
referenceName
Create a reference type name in the form of {@literal Ljava/lang/Object;}. @param type must not be {@literal null}. @return reference type name in th
src/main/java/org/springframework/data/mapping/model/BytecodeUtil.java:164
↓ 77 callers
Method
getBean
Returns the underlying bean that potentially has been modified by the setter methods exposed. Client code needs to make sure to call this method to se
src/main/java/org/springframework/data/auditing/AuditableBeanWrapper.java:80
↓ 76 callers
Method
apply
(ThrowingSupplier supplier)
src/main/java/org/springframework/data/repository/util/QueryExecutionConverters.java:299
↓ 76 callers
Method
getParameters
@return the parameters used by this creator.
src/main/java/org/springframework/data/mapping/InstanceCreatorMetadata.java:58
↓ 75 callers
Method
collect
()
src/main/java/org/springframework/data/util/TypeCollector.java:308
↓ 75 callers
Method
getField
()
src/main/java/org/springframework/data/mapping/PersistentProperty.java:158
↓ 74 callers
Method
append
Create a new {@link RepositoryComposition} retaining current configuration and append {@link RepositoryFragment} to the new composition. The resulting
src/main/java/org/springframework/data/repository/core/support/RepositoryComposition.java:203
↓ 73 callers
Method
equals
(Object obj)
src/test/java/org/springframework/data/repository/util/QueryExecutionConvertersUnitTests.java:316
↓ 72 callers
Method
from
Extracts the {@link PropertyPath} chain from the given source {@link String} and {@link TypeInformation}. <br /> Uses {@code (?:[%s]?([%s] ?[^%s]+))}
src/main/java/org/springframework/data/core/PropertyPath.java:246
↓ 67 callers
Method
invoke
(@Nullable Object[] args)
src/main/java/org/springframework/data/repository/core/support/RepositoryMethodInvoker.java:196
↓ 66 callers
Method
just
Factory method to create {@link RepositoryFragmentsFunction} for a resolved {@link RepositoryFragments} object. @param fragments the fragments to use
src/main/java/org/springframework/data/repository/core/support/RepositoryFactoryBeanSupport.java:430
↓ 65 callers
Method
getRepositoryInterface
Returns the repository interface. @return
src/main/java/org/springframework/data/repository/core/RepositoryMetadata.java:76
↓ 65 callers
Method
matches
(Class<?> type)
src/main/java/org/springframework/data/util/TypeUtils.java:207
↓ 64 callers
Method
getValue
()
src/test/java/org/springframework/data/util/AnnotationDetectionMethodCallbackUnitTests.java:58
↓ 64 callers
Method
stream
Stream all matching elements. @return a {@link Stream} wrapping cursors that need to be closed.
src/main/java/org/springframework/data/repository/query/FluentQuery.java:255
↓ 61 callers
Method
getBeanDefinition
Gets the {@link BeanDefinition} for the given, required {@link String named bean}. @return the {@link BeanDefinition} for the given, required {@link
src/main/java/org/springframework/data/aot/AotContext.java:370
↓ 61 callers
Method
getPersistentEntity
Returns a {@link PersistentEntity} for the given {@link Class}. Will return {@code null} for types that are considered simple ones. @see org.springfr
src/main/java/org/springframework/data/mapping/context/MappingContext.java:60
↓ 61 callers
Method
hasValue
Checks whether this {@link Alias} contains the value {@code that}. @param that the other value, may be {@literal null}. @return {@literal true} if th
src/main/java/org/springframework/data/mapping/Alias.java:105
↓ 61 callers
Method
startsWith
Sets string matcher to {@link StringMatcher#STARTING}.
src/main/java/org/springframework/data/domain/ExampleMatcher.java:469
↓ 60 callers
Method
getName
()
src/test/java/org/springframework/data/mapping/model/ClassGeneratingPropertyAccessorFactoryEntityTypeTests.java:77
↓ 58 callers
Method
registerBeanDefinition
(Class<?> repositoryFactoryType)
src/test/java/org/springframework/data/repository/config/RepositoryConfigurationDelegateUnitTests.java:353
↓ 56 callers
Method
getParameterTypes
Returns the {@link TypeInformation}s for the parameters of the given {@link Constructor}. @param constructor must not be {@literal null}. @return
src/main/java/org/springframework/data/core/TypeInformation.java:128
↓ 56 callers
Method
visitMethodInsn
(int opcode, String owner, String name, String descriptor, boolean isInterface)
src/main/java/org/springframework/data/core/SerializableLambdaReader.java:411
↓ 54 callers
Method
getParameterCount
@return the number of parameters.
src/main/java/org/springframework/data/mapping/InstanceCreatorMetadata.java:51
↓ 54 callers
Method
unpaged
Returns a {@link Pageable} instance representing no pagination setup.
src/main/java/org/springframework/data/domain/Pageable.java:36
↓ 53 callers
Method
canConvert
Return {@literal true} if objects of {@code sourceType} can be converted to the {@code targetType}. @param sourceType must not be {@literal null}. @p
src/main/java/org/springframework/data/repository/util/ReactiveWrapperConverters.java:219
↓ 50 callers
Method
of
Syntax sugar to create a {@link TypedPropertyPath} from a method reference to a Java beans property. <p> This method returns a resolved {@link TypedPr
src/main/java/org/springframework/data/core/PropertyPath.java:63
↓ 50 callers
Method
offset
Creates a new initial {@link ScrollPosition} to start scrolling using offset / limit. @return will never be {@literal null}.
src/main/java/org/springframework/data/domain/ScrollPosition.java:50
↓ 49 callers
Method
computeIfAbsent
Get or compute a target type given its {@code targetType}. Returns a cached {@link Optional} if the value (present/absent target) was computed once. O
src/main/java/org/springframework/data/convert/CustomConversions.java:603
↓ 48 callers
Method
convert
(Point source)
src/test/java/org/springframework/data/convert/CustomConversionsUnitTests.java:427
↓ 48 callers
Method
length
Returns the number of values in this array. @return the length of this array
src/main/java/org/springframework/data/repository/aot/generate/JSONArray.java:127
↓ 48 callers
Method
setProperty
Sets the given {@link PersistentProperty} to the given value. Will do type conversion if a {@link org.springframework.core.convert.ConversionService}
src/main/java/org/springframework/data/mapping/PersistentPropertyAccessor.java:47
↓ 47 callers
Method
ofNullable
Create an {@link Alias} from a possibly present {@code alias} object. Using a {@literal null} alias will return {@link #empty()}. @param alias may be
src/main/java/org/springframework/data/mapping/Alias.java:72
↓ 46 callers
Method
contributesReflectionFor
(Class<?>... types)
src/test/java/org/springframework/data/aot/CodeContributionAssert.java:49
↓ 46 callers
Method
getParameterValue
Returns the value to be used for the given {@link Parameter} (usually when entity instances are created). @param parameter must not be {@literal null
src/main/java/org/springframework/data/mapping/model/ParameterValueProvider.java:37
↓ 46 callers
Method
getReturnType
Returns a {@link TypeInformation} for the return type of the given {@link Method}. Will potentially resolve generics information against the current t
src/main/java/org/springframework/data/core/TypeInformation.java:298
↓ 46 callers
Method
hashCode
()
src/test/java/org/springframework/data/repository/util/QueryExecutionConvertersUnitTests.java:326
↓ 45 callers
Method
flatMap
Returns a new {@link Streamable} that will apply the given {@link Function} to the current one. @param mapper must not be {@literal null}. @return @s
src/main/java/org/springframework/data/util/Streamable.java:111
↓ 45 callers
Method
then
Extend the property path by appending the {@code next} path segment and return a new property path instance. @param next the next property path segme
src/main/java/org/springframework/data/core/TypedPropertyPath.java:170
↓ 44 callers
Method
createInstance
Creates a new instance of the given entity using the given source to pull data from. @param entity will not be {@literal null}. @param provider will
src/main/java/org/springframework/data/mapping/model/EntityInstantiator.java:36
↓ 44 callers
Method
getType
Returns the actual type of the property at this segment. Will return the plain resolved type for simple properties, the component type for any {@link
src/main/java/org/springframework/data/core/PropertyPath.java:140
↓ 44 callers
Method
map
()
src/test/java/org/springframework/data/repository/core/support/QueryExecutionResultHandlerUnitTests.java:443
↓ 43 callers
Method
discover
Discovers the {@link PreferredConstructor} for the given type. @param type must not be {@literal null}. @return the {@link PreferredConstructor} if f
src/main/java/org/springframework/data/mapping/model/PreferredConstructorDiscoverer.java:63
↓ 42 callers
Method
findField
Finds the first field on the given class matching the given {@link FieldFilter}. @param type must not be {@literal null}. @param filter must not be {
src/main/java/org/springframework/data/util/ReflectionUtils.java:172
↓ 42 callers
Method
first
Returns the {@link Pageable} requesting the first page. @return the {@link Pageable} requesting the first page.
src/main/java/org/springframework/data/domain/Pageable.java:151
↓ 40 callers
Method
bind
Returns the predicate to be applied to the given {@link Path} for the given collection value, which will contain all values submitted for the path bin
src/main/java/org/springframework/data/querydsl/binding/MultiValueBinding.java:44
↓ 39 callers
Method
toClass
Returns the {@link Class} representing the declared return type. @return the declared return class.
src/main/java/org/springframework/data/repository/aot/generate/MethodReturn.java:147
↓ 38 callers
Method
as
Define the target type the result should be mapped to. Skip this step if you are only interested in the original domain type. @param resultType must
src/main/java/org/springframework/data/repository/query/FluentQuery.java:86
↓ 37 callers
Method
findMethod
Returns the {@link Method} with the given name and parameters declared on the given type, if available. @param type must not be {@literal null}. @par
src/main/java/org/springframework/data/util/ReflectionUtils.java:390
↓ 37 callers
Method
introspect
Introspect a {@link Class mapped type} in the context of a {@link Class domain type} whether the returned type is a projection and what property paths
src/main/java/org/springframework/data/projection/EntityProjectionIntrospector.java:93
next →
1–100 of 9,531, ranked by callers