id
stringlengths
16
145
text
stringlengths
1
179k
title
stringclasses
1 value
hamcrest_classes/query-methods-details.html7_10_0.txt
The repository proxy has two ways to derive a store-specific query from the method name: * By deriving the query from the method name directly.
hamcrest_classes/class-Cake.Collection.Collection.html7_40_0.txt
* ##### max() public Returns the top element in this collection after being sorted by a property. Check the sortBy method for information on the callback and $type parameters
hamcrest_classes/class-Cake.Collection.Collection.html7_186_0.txt
Returns whether or not there are elements in this collection ### Example:
hamcrest_classes/hamcrest_classes_43_0.txt
* * * | [ **Overview** ](../../overview-summary.html) | [ **Package** ](package-summary.html) | **Class** | [ **Use** ](class-use/Condition.html) | [ **Tree** ](package-tree.html) | [ **Deprecated** ](../../deprecated-list.html) | [ **Index** ](../../index-all.html) | [ **Help** ](../../help-doc.html) ---|--...
hamcrest_classes/query-methods-details.html7_22_0.txt
Although this should work for most cases, it is possible for the algorithm to select the wrong property. Suppose the ` Person ` class has an ` addressZip ` property as well. The algorithm would match in the first split round already, choose the wrong property, and fail (as the type of ` addressZip ` probably has no ` c...
hamcrest_classes/hamcrest_classes_55_0.txt
* * * | [ **Overview** ](../../../overview-summary.html) | [ **Package** ](package-summary.html) | **Class** | [ **Use** ](class-use/StringStartsWith.html) | [ **Tree** ](package-tree.html) | [ **Deprecated** ](../../../deprecated-list.html) | [ **Index** ](../../../index-all.html) | [ **Help** ](../../../help...
hamcrest_classes/using-matchers6_31_0.txt
* Getting Started * Guides * API Reference Community
hamcrest_classes/using-matchers6_32_0.txt
* Stack Overflow * Reactiflux * Twitter More
hamcrest_classes/class-Cake.Collection.Collection.html7_95_0.txt
Returns a new collection as the result of concatenating the list of elements in this collection with the passed list of elements ###### Parameters
hamcrest_classes/query-methods-details.html7_2_0.txt
Projects Overview Spring Boot Spring Framework Spring Cloud Spring Cloud Data Flow Spring Data Spring Integration Spring Batch Spring Security View all projects Spring Tools 4 Spring Initializr
hamcrest_classes/class-Cake.Collection.Collection.html7_112_0.txt
### Examples: $items = [ ['id' => 1, 'name' => 'foo', 'parent' => 'a'], ['id' => 2, 'name' => 'bar', 'parent' => 'b'], ['id' => 3, 'name' => 'baz', 'parent' => 'a'], ]; $combined = (new Collection($items))->combine('id', 'name'); // Result will look like this when co...
hamcrest_classes/class-Cake.Collection.Collection.html7_230_0.txt
Folds the values in this collection to a single value, as the result of applying the callback function to all elements. $zero is the initial state of the reduction, and each successive step of it should be returned by the callback function. If $zero is omitted the first value of the collection will be used in its place...
hamcrest_classes/hamcrest_classes_60_0.txt
* * * | [ **Overview** ](../../../overview-summary.html) | [ **Package** ](package-summary.html) | **Class** | [ **Use** ](class-use/IsArrayContaining.html) | [ **Tree** ](package-tree.html) | [ **Deprecated** ](../../../deprecated-list.html) | [ **Index** ](../../../index-all.html) | [ **Help** ](../../../hel...
hamcrest_classes/class-Cake.Collection.Collection.html7_9_0.txt
* ##### __construct() public Constructor. You can provide an array or any traversable object
hamcrest_classes/hamcrest_classes_54_0.txt
* * * | [ **Overview** ](../../../overview-summary.html) | [ **Package** ](package-summary.html) | **Class** | [ **Use** ](class-use/ArrayIterator.html) | [ **Tree** ](package-tree.html) | [ **Deprecated** ](../../../deprecated-list.html) | [ **Index** ](../../../index-all.html) | [ **Help** ](../../../help-do...
hamcrest_classes/class-Cake.Collection.Collection.html7_306_0.txt
The serialized collection ###### Returns
hamcrest_classes/query-methods-details.html7_5_0.txt
Community Overview Events Team
hamcrest_classes/query-methods-details.html7_47_0.txt
### Limiting Query Results In addition to paging it is possible to limit the result size using a dedicated ` Limit ` parameter. You can also limit the results of query methods by using the ` First ` or ` Top ` keywords, which you can use interchangeably but may not be mixed with a ` Limit ` parameter. You can append ...
hamcrest_classes/class-Cake.Collection.Collection.html7_19_0.txt
* ##### chunk() public Breaks the collection into smaller arrays of the given size.
hamcrest_classes/class-Cake.Collection.Collection.html7_297_0.txt
Creates a new collection where the items are the concatenation of the lists of items generated by the transformer function applied to each item in the original collection. The transformer function will receive the value and the key for each of the items in the collection, in that order, and it must return an array or ...
hamcrest_classes/using-matchers6_23_0.txt
## Exceptions ​ If you want to test whether a particular function throws an error when it's called, use ` toThrow ` .
hamcrest_classes/class-Cake.Collection.Collection.html7_202_0.txt
### map() ¶ public map(callable $c): Cake\Collection\Iterator\ReplaceIterator
hamcrest_classes/using-matchers6_30_0.txt
* Common Matchers * Truthiness * Numbers * Strings * Arrays and iterables * Exceptions * And More Docs
hamcrest_classes/class-Cake.Collection.Collection.html7_264_0.txt
` Cake\Collection\CollectionInterface ` ### stopWhen() ¶ public
hamcrest_classes/query-methods-details.html7_15_0.txt
The query builder mechanism built into the Spring Data repository infrastructure is useful for building constraining queries over entities of the repository. The following example shows how to create a number of queries:
hamcrest_classes/hamcrest_classes_19_0.txt
* * * | [ **Overview** ](../../overview-summary.html) | [ **Package** ](package-summary.html) | **Class** | [ **Use** ](class-use/EasyMock2Matchers.html) | [ **Tree** ](package-tree.html) | [ **Deprecated** ](../../deprecated-list.html) | [ **Index** ](../../index-all.html) | [ **Help** ](../../help-doc.html) ...
hamcrest_classes/class-Cake.Collection.Collection.html7_171_0.txt
###### Returns
hamcrest_classes/hamcrest_classes_1_26.txt
hamcrest")<java.util.EventObject> **eventFrom**(java.lang.Class<? extends java.util.EventObject> eventClass, java.lang.Object source) Creates a matcher of ` EventObject ` that matches any object derived from eventClass announced by source . For exam...
hamcrest_classes/class-Cake.Collection.Collection.html7_79_0.txt
Path to extract from.
hamcrest_classes/class-Cake.Collection.Collection.html7_257_0.txt
###### Returns ` bool `
hamcrest_classes/query-methods-details.html7_3_0.txt
Academy Courses Get Certified
hamcrest_classes/query-methods-details.html7_39_0.txt
| To find out how many pages you get for an entire query, you have to trigger an additional count query. By default, this query is derived from the query you actually trigger. ---|--- | Special parameters may only be used once within a query method. Some special parameters described above are mutually exclus...
hamcrest_classes/hamcrest_classes_73_0.txt
* * * | [ **Overview** ](../../../overview-summary.html) | [ **Package** ](package-summary.html) | **Class** | [ **Use** ](class-use/IsEmptyCollection.html) | [ **Tree** ](package-tree.html) | [ **Deprecated** ](../../../deprecated-list.html) | [ **Index** ](../../../index-all.html) | [ **Help** ](../../../hel...
hamcrest_classes/hamcrest_classes_24_1.txt
etail** --- ### IsIn public **IsIn**(java.util.Collection<[T](../../../org/hamcrest/collection/IsIn.html "type parameter in IsIn")> collection) * * * ### IsIn public **IsIn**([T](../../../org/hamcrest/collection/IsIn.html "type parameter in IsIn")[] elements) **Method Detail** ...
hamcrest_classes/query-methods-details.html7_9_0.txt
* Spring Data JPA * JPA * Defining Query Methods # Defining Query Methods
hamcrest_classes/class-Cake.Collection.Collection.html7_37_0.txt
* ##### listNested() public Returns a new collection with each of the elements of this collection after flattening the tree structure. The tree structure is defined by nesting elements under a key with a known name. It is possible to specify such name by using the '$nestingKey' parameter.
hamcrest_classes/using-matchers6_10_0.txt
test('two plus two is four', () => { expect(2 + 2).toBe(4); }); In this code, ` expect(2 + 2) ` returns an "expectation" object. You typically won't do much with these expectation objects except call matchers on them. In this code, ` .toBe(4) ` is the matcher. When Jest runs, it trac...
hamcrest_classes/using-matchers6_28_0.txt
Previous Getting Started
hamcrest_classes/class-Cake.Collection.Collection.html7_119_0.txt
$collection->map($mapper)->sortBy('age')->extract('name'); $compiled = $collection->compile(); $isJohnHere = $compiled->some($johnMatcher); $allButJohn = $compiled->filter($johnMatcher); In the above example, had the collection not been compiled before, the iterations for ` map ` , ` sortBy `...
hamcrest_classes/class-Cake.Collection.Collection.html7_214_0.txt
Returns the top element in this collection after being sorted by a property. Check the sortBy method for information on the callback and $type parameters ### Examples:
hamcrest_classes/class-Cake.Collection.Collection.html7_211_0.txt
` array ` $conditions
hamcrest_classes/class-Cake.Collection.Collection.html7_46_0.txt
* ##### serialize() public Returns a string representation of this object that can be used to reconstruct it
hamcrest_classes/hamcrest_classes_42_0.txt
* * * | [ **Overview** ](../../../overview-summary.html) | [ **Package** ](package-summary.html) | **Class** | [ **Use** ](class-use/SelfDescribingValue.html) | [ **Tree** ](package-tree.html) | [ **Deprecated** ](../../../deprecated-list.html) | [ **Index** ](../../../index-all.html) | [ **Help** ](../../../h...
hamcrest_classes/class-Cake.Collection.Collection.html7_74_0.txt
###### Returns ` callable `
hamcrest_classes/class-Cake.Collection.Collection.html7_145_0.txt
` callable ` $c
hamcrest_classes/class-Cake.Collection.Collection.html7_302_0.txt
###### Returns ` Cake\Collection\CollectionInterface `
hamcrest_classes/hamcrest_classes_49_2.txt
| **Class** | [ **Use** ](class-use/DescribedAs.html) | [ **Tree** ](package-tree.html) | [ **Deprecated** ](../../../deprecated-list.html) | [ **Index** ](../../../index-all.html) | [ **Help** ](../../../help-doc.html) ---|---|---|---|---|---|---|--- __ [ **PREV CLASS** ](../../../org/hamcrest/core/Combin...
hamcrest_classes/hamcrest_classes_2_2.txt
) **Description copied from interface:` [ SelfDescribing ](../../../org/hamcrest/SelfDescribing.html#describeTo\(org.hamcrest.Description\)) ` ** Generates a description of the object. The description may be part of a a description of a larger object of which this is just a component, so it should be worded ...
hamcrest_classes/hamcrest_classes_41_2.txt
(../../../allclasses-noframe.html) SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD * * *
hamcrest_classes/hamcrest_classes_74_0.txt
* * * | [ **Overview** ](../../../overview-summary.html) | [ **Package** ](package-summary.html) | **Class** | [ **Use** ](class-use/IsArrayContainingInOrder.html) | [ **Tree** ](package-tree.html) | [ **Deprecated** ](../../../deprecated-list.html) | [ **Index** ](../../../index-all.html) | [ **Help** ](../.....
hamcrest_classes/hamcrest_classes_51_0.txt
* * * | [ **Overview** ](../../../overview-summary.html) | [ **Package** ](package-summary.html) | **Class** | [ **Use** ](class-use/BigDecimalCloseTo.html) | [ **Tree** ](package-tree.html) | [ **Deprecated** ](../../../deprecated-list.html) | [ **Index** ](../../../index-all.html) | [ **Help** ](../../../hel...
hamcrest_classes/class-Cake.Collection.Collection.html7_87_0.txt
###### Parameters ` arrayArrayAccess ` $data
hamcrest_classes/hamcrest_classes_30_0.txt
* * * | [ **Overview** ](../../../overview-summary.html) | [ **Package** ](package-summary.html) | **Class** | [ **Use** ](class-use/IsArray.html) | [ **Tree** ](package-tree.html) | [ **Deprecated** ](../../../deprecated-list.html) | [ **Index** ](../../../index-all.html) | [ **Help** ](../../../help-doc.html...
hamcrest_classes/query-methods-details.html7_8_0.txt
Search Edit this Page GitHub Project Stack Overflow
hamcrest_classes/hamcrest_classes_40_2.txt
description of the object. The description may be part of a a description of a larger object of which this is just a component, so it should be worded appropriately. **Parameters:** ` description ` \- The description to be built or appended to. * * * ### and public [CombinableMatcher](.....
hamcrest_classes/class-Cake.Collection.Collection.html7_133_0.txt
### Example: $items = [ ['id' => 1, 'name' => 'foo', 'parent_id' => 10], ['id' => 2, 'name' => 'bar', 'parent_id' => 11], ['id' => 3, 'name' => 'baz', 'parent_id' => 10], ]; $group = (new Collection($items))->countBy('parent_id'); // Or $group = (new Collection($...
hamcrest_classes/class-Cake.Collection.Collection.html7_198_0.txt
### Example: $collection = new Collection([ ['id' => 1, 'children' => [['id' => 2, 'children' => [['id' => 3]]]]], ['id' => 4, 'children' => [['id' => 5]]] ]); $flattenedIds = $collection->listNested()->extract('id'); // Yields [1, 2, 3, 4, 5]
hamcrest_classes/class-Cake.Collection.Collection.html7_245_0.txt
###### Returns ` string `
hamcrest_classes/class-Cake.Collection.Collection.html7_314_0.txt
###### Returns ` Cake\Collection\CollectionInterface `
hamcrest_classes/hamcrest_classes_65_3.txt
ingComparison.html) [ **NO FRAMES** ](OrderingComparison.html) [ **All Classes** ](../../../allclasses-noframe.html) SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD * * *
hamcrest_classes/class-Cake.Collection.Collection.html7_62_0.txt
* ##### zipWith() public Combines the elements of this collection with each of the elements of the passed iterables, using their positional index as a reference.
hamcrest_classes/class-Cake.Collection.Collection.html7_278_0.txt
###### Parameters ` int ` $size optional
hamcrest_classes/hamcrest_classes_47_10.txt
ass)) ` For example: assertThat(new Canoe(), instanceOf(Canoe.class)); * * * ### instanceOf public static <T> [Matcher](../../org/hamcrest/Matcher.html "interface in org.hamcrest")<T> **instanceOf**(java.lang.Class<?> type) Creates a matcher that matches when the examined o...
hamcrest_classes/class-Cake.Collection.Collection.html7_262_0.txt
` int ` $dir optional ` int ` $type optional
hamcrest_classes/class-Cake.Collection.Collection.html7_57_0.txt
* ##### transpose() public Transpose rows and columns into columns and rows
hamcrest_classes/hamcrest_classes_15_1.txt
**[ appendValueList ](../../org/hamcrest/Description.html#appendValueList\(java.lang.String, java.lang.String, java.lang.String, T...\)) ** (java.lang.String start, java.lang.String separator, java.lang.String end, T... values) ` Appends a list of values to the description. **Field Detail** --- ### NONE ...
hamcrest_classes/class-Cake.Collection.Collection.html7_0_0.txt
* Documentation * Book * API * Videos * Reporting Security Issues * Privacy Policy * Logos & Trademarks * Business Solutions * Swag * Road Trip * Team * Community * Community * Get Involved * Issues (Github) * Bakery * Featured Resources * Tr...
hamcrest_classes/class-Cake.Collection.Collection.html7_106_0.txt
chunk(int $chunkSize): Cake\Collection\CollectionInterface Breaks the collection into smaller arrays of the given size.
hamcrest_classes/query-methods-details.html7_36_0.txt
1 | Use ` java.util.concurrent.Future ` as the return type. ---|--- 2 | Use a Java 8 ` java.util.concurrent.CompletableFuture ` as the return type. ## Paging, Iterating Large Results, Sorting & Limiting To handle parameters in your query, define method parameters as already seen in the preceding exampl...
hamcrest_classes/query-methods-details.html7_0_0.txt
Why Spring Overview Microservices Reactive Event Driven Cloud Web Applications Serverless Batch
hamcrest_classes/hamcrest_classes_74_1.txt
cription.html "interface in org.hamcrest") mismatchDescription) ` Subclasses should override this. ` void ` | ` **[ describeTo ](../../../org/hamcrest/collection/IsArrayContainingInOrder.html#describeTo\(org.hamcrest.Description\)) ** ( [ Description ](../../../org/hamcrest/Description.html "interface in org.hamc...
hamcrest_classes/class-Cake.Collection.Collection.html7_111_0.txt
combine(callable|string $keyPath, callable|string $valuePath, callable|string|null $groupPath = null): Cake\Collection\CollectionInterface Returns a new collection where the values extracted based on a value path and then indexed by a key path. Optionally this method can produce parent groups based on a ...
hamcrest_classes/hamcrest_classes_10_1.txt
--- ` [ _dont_implement_Matcher___instead_extend_BaseMatcher_ ](../../../org/hamcrest/BaseMatcher.html#_dont_implement_Matcher___instead_extend_BaseMatcher_\(\)) , [ toString ](../../../org/hamcrest/BaseMatcher.html#toString\(\)) ` **Methods inherited from class java.lang.Object** --- ` clone, equals, finalize,...
hamcrest_classes/class-Cake.Collection.Collection.html7_206_0.txt
` callable ` $c
hamcrest_classes/class-Cake.Collection.Collection.html7_184_0.txt
###### Returns ` Cake\Collection\Iterator\InsertIterator `
hamcrest_classes/class-Cake.Collection.Collection.html7_160_0.txt
` Cake\Collection\Iterator\FilterIterator ` ### first() ¶ public
hamcrest_classes/hamcrest_classes_1_14.txt
mcrest")<? super LHS> matcher) Creates a matcher that matches when both of the specified matchers match the examined object. For example: assertThat("fab", both(containsString("a")).and(containsString("b"))) * * * ### either public static <LHS> [CombinableMatcher.Combinabl...
hamcrest_classes/class-Cake.Collection.Collection.html7_28_0.txt
* ##### filter() public Looks through each value in the collection, and returns another collection with all the values that pass a truth test. Only the values for which the callback returns true will be present in the resulting collection.
hamcrest_classes/hamcrest_classes_48_0.txt
* * * | [ **Overview** ](../../../overview-summary.html) | [ **Package** ](package-summary.html) | **Class** | [ **Use** ](class-use/IsCompatibleType.html) | [ **Tree** ](package-tree.html) | [ **Deprecated** ](../../../deprecated-list.html) | [ **Index** ](../../../index-all.html) | [ **Help** ](../../../help...
hamcrest_classes/hamcrest_classes_17_0.txt
* * * | [ **Overview** ](../../../overview-summary.html) | [ **Package** ](package-summary.html) | **Class** | [ **Use** ](class-use/EasyMock2Adapter.html) | [ **Tree** ](package-tree.html) | [ **Deprecated** ](../../../deprecated-list.html) | [ **Index** ](../../../index-all.html) | [ **Help** ](../../../help...
hamcrest_classes/class-Cake.Collection.Collection.html7_269_0.txt
###### Parameters ` callable ` $condition
hamcrest_classes/hamcrest_classes_1_13.txt
rest/core/AnyOf.html "class in org.hamcrest.core")<T> **anyOf**([Matcher](../../org/hamcrest/Matcher.html "interface in org.hamcrest")<T> first, [Matcher](../../org/hamcrest/Matcher.html "interface in org.hamcrest")<? super T> second, [Matcher](....
hamcrest_classes/class-Cake.Collection.Collection.html7_219_0.txt
min(callable|string $callback, int $type = SORT_NUMERIC): mixed Returns the bottom element in this collection after being sorted by a property. Check the sortBy method for information on the callback and $type parameters
hamcrest_classes/class-Cake.Collection.Collection.html7_276_0.txt
` float|int ` ### take() ¶ public
hamcrest_classes/using-matchers6_25_0.txt
The function that throws an exception needs to be invoked within a wrapping function otherwise the ` toThrow ` assertion will fail. ## And More ​
hamcrest_classes/hamcrest_classes_73_2.txt
ose ` isEmpty ` method returns ` true ` . For example: assertThat(new ArrayList<String>(), is(emptyCollectionOf(String.class))) **Parameters:** ` type ` \- the type of the collection's content * * * | [ **Overview** ](../../../overview-summary.html) | [ **Package** ](package-summary.htm...
hamcrest_classes/class-Cake.Collection.Collection.html7_139_0.txt
###### Parameters ` callable ` $c
hamcrest_classes/class-Cake.Collection.Collection.html7_155_0.txt
filter(callable|null $c = null): Cake\Collection\Iterator\FilterIterator Looks through each value in the collection, and returns another collection with all the values that pass a truth test. Only the values for which the callback returns true will be present in the resulting collection.
hamcrest_classes/class-Cake.Collection.Collection.html7_252_0.txt
` Cake\Collection\CollectionInterface ` ### some() ¶ public
hamcrest_classes/class-Cake.Collection.Collection.html7_319_0.txt
` callable ` $callable
hamcrest_classes/hamcrest_classes_6_1.txt
rresponding matcher from the specified ` itemMatchers ` . ` static | ` <T> [ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <java.lang.Iterable<T>> ` --- ` ` **[ hasItems ](../../../org/hamcrest/core/IsCollectionContaining.html#hasItems\(T...\)) ** (T... items) ` Creates a matcher f...
hamcrest_classes/class-Cake.Collection.Collection.html7_69_0.txt
Returns an array that can be used to describe the internal state of this object. ###### Returns
hamcrest_classes/class-Cake.Collection.Collection.html7_39_0.txt
* ##### match() public Looks through each value in the list, returning a Collection of all the values that contain all of the key-value pairs listed in $conditions.
hamcrest_classes/hamcrest_classes_60_1.txt
hods inherited from class org.hamcrest.[ TypeSafeMatcher ](../../../org/hamcrest/TypeSafeMatcher.html "class in org.hamcrest") ** --- ` [ describeMismatch ](../../../org/hamcrest/TypeSafeMatcher.html#describeMismatch\(java.lang.Object, org.hamcrest.Description\)) , [ matches ](../../../org/hamcrest/TypeSafeMatcher....
hamcrest_classes/hamcrest_classes_5_2.txt
org/hamcrest/Description.html "interface in org.hamcrest") mismatchDescription) **Description copied from interface:` [ Matcher ](../../org/hamcrest/Matcher.html#describeMismatch\(java.lang.Object, org.hamcrest.Description\)) ` ** Generate a description of why the matcher has not accepted the item. The descr...
hamcrest_classes/using-matchers6_3_0.txt
English * English * 日本語 * Español * Français * Português (Brasil) * Română * Русский * Українська * 简体中文
hamcrest_classes/hamcrest_classes_4_2.txt
y. **Parameters:** ` description ` \- The description to be built or appended to. * * * ### hasProperty public static <T> [Matcher](../../../org/hamcrest/Matcher.html "interface in org.hamcrest")<T> **hasProperty**(java.lang.String propertyName, ...
hamcrest_classes/class-Cake.Collection.Collection.html7_60_0.txt
* ##### unwrap() public Returns the closest nested iterator that can be safely traversed without losing any possible transformations. This is used mainly to remove empty IteratorIterator wrappers that can only slowdown the iteration process.
hamcrest_classes/class-Cake.Collection.Collection.html7_67_0.txt
###### Throws ` InvalidArgumentException ` If passed incorrect type for items.
hamcrest_classes/hamcrest_classes_1_27.txt
*hasXPath**(java.lang.String xPath, javax.xml.namespace.NamespaceContext namespaceContext, [Matcher](../../org/hamcrest/Matcher.html "interface in org.hamcrest")<java.lang.String> valueMatcher) Creates a matc...