id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
hamcrest_classes/hamcrest_classes_7_1.txt | peSafeMatcher.html#TypeSafeMatcher\(org.hamcrest.internal.ReflectiveTypeFinder\)) ** ( [ ReflectiveTypeFinder ](../../org/hamcrest/internal/ReflectiveTypeFinder.html "class in org.hamcrest.internal") typeFinder) `
Use this constructor if the subclass that implements ` matchesSafely ` is
_not_ the class that binds <T... | |
hamcrest_classes/class-Cake.Collection.Collection.html7_134_0.txt | ###### Parameters
` callable|string ` $callback | |
hamcrest_classes/class-Cake.Collection.Collection.html7_104_0.txt |
###### Returns | |
hamcrest_classes/class-Cake.Collection.Collection.html7_162_0.txt | ###### Returns
` mixed ` | |
hamcrest_classes/hamcrest_classes_65_1.txt | (T
value) `
Creates a matcher of ` Comparable ` object that matches when the examined
object is less than the specified value, as reported by the ` compareTo `
method of the **examined** object.
` static | ` <T extends java.lang.Comparable<T>>
[ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.ha... | |
hamcrest_classes/query-methods-details.html7_30_0.txt | 1 | A ` Product ` entity that exposes API to access the product’s price.
---|---
2 | A wrapper type for a ` Streamable<Product> ` that can be constructed by using ` Products.of(…) ` (factory method created with the Lombok annotation). A standard constructor taking the ` Streamable<Product> ` will do as well. ... | |
hamcrest_classes/hamcrest_classes_68_0.txt | * * *
| [ **Overview** ](../../../overview-summary.html) | [ **Package** ](package-summary.html) | **Class** | [ **Use** ](class-use/IsArrayContainingInAnyOrder.html) | [ **Tree** ](package-tree.html) | [ **Deprecated** ](../../../deprecated-list.html) | [ **Index** ](../../../index-all.html) | [ **Help** ](..... | |
hamcrest_classes/class-Cake.Collection.Collection.html7_170_0.txt | ###### Parameters
` callable|string ` $callback | |
hamcrest_classes/using-matchers6_18_0.txt | Most ways of comparing numbers have matcher equivalents.
test('two plus two', () => {
const value = 2 + 2;
expect(value).toBeGreaterThan(3);
expect(value).toBeGreaterThanOrEqual(3.5);
expect(value).toBeLessThan(5);
expect(value).toBeLessThanOrEqual(4.5);
... | |
hamcrest_classes/class-Cake.Collection.Collection.html7_6_0.txt | ### Namespaces
* Global
* Cake
* Auth
* Cache
* Collection
* Iterator
* Console
* Controller
* Core
* Database
* Datasource
* Error
* Event
* Filesystem
* Form
* Http
* I18n
* Log
* Mailer
* Network
* ORM
* Rout... | |
hamcrest_classes/query-methods-details.html7_12_0.txt | ## Query Lookup Strategies
The following strategies are available for the repository infrastructure to
resolve the query. With XML configuration, you can configure the strategy at
the namespace through the ` query-lookup-strategy ` attribute. For Java
configuration, you can use the ` queryLookupStrategy ` attribute o... | |
hamcrest_classes/hamcrest_classes_1_24.txt | l> **closeTo**(java.math.BigDecimal operand,
java.math.BigDecimal error)
Creates a matcher of ` BigDecimal ` s that matches when an examined BigDecimal is equal to the specified ` operand ` , within a range of +/- ` error ` . The comparison for equality is d... | |
hamcrest_classes/query-methods-details.html7_31_0.txt | Vavr collection type | Used Vavr implementation type | Valid Java source types
---|---|---
` io.vavr.collection.Seq ` | ` io.vavr.collection.List ` | ` java.util.Iterable `
` io.vavr.collection.Set ` | ` io.vavr.collection.LinkedHashSet ` | ` java.util.Iterable `
` io.vavr.collection.Map ` | ` io.vavr... | |
hamcrest_classes/hamcrest_classes_25_1.txt |
**Returns:** Property descriptors **Throws:** `
java.lang.IllegalArgumentException ` \- if there's a introspection failure
* * *
| [ **Overview** ](../../../overview-summary.html) | [ **Package** ](package-summary.html) | **Class** | [ **Use** ](class-use/PropertyUtil.html) | [ **Tree** ](package-tre... | |
hamcrest_classes/hamcrest_classes_20_0.txt | * * *
| [ **Overview** ](../../overview-summary.html) | [ **Package** ](package-summary.html) | **Class** | [ **Use** ](class-use/StringDescription.html) | [ **Tree** ](package-tree.html) | [ **Deprecated** ](../../deprecated-list.html) | [ **Index** ](../../index-all.html) | [ **Help** ](../../help-doc.html) ... | |
hamcrest_classes/hamcrest_classes_27_1.txt | cribing.html#describeTo\(org.hamcrest.Description\))
`
**Constructor Detail**
---
### BaseMatcher
public **BaseMatcher**()
**Method Detail**
---
### _dont_implement_Matcher___instead_extend_BaseMatcher_
@Deprecated
public final void **_dont_implement_Matcher___ins... | |
hamcrest_classes/hamcrest_classes_4_0.txt | * * *
| [ **Overview** ](../../../overview-summary.html) | [ **Package** ](package-summary.html) | **Class** | [ **Use** ](class-use/HasPropertyWithValue.html) | [ **Tree** ](package-tree.html) | [ **Deprecated** ](../../../deprecated-list.html) | [ **Index** ](../../../index-all.html) | [ **Help** ](../../../... | |
hamcrest_classes/hamcrest_classes_44_1.txt | od matches against Object, instead of the generic type T. This is
because the caller of the Matcher does not know at runtime what the type is
(because of type erasure with Java generics). It is down to the
implementations to check the correct type.
**Parameters:** ` o ` \- the object against which the match... | |
hamcrest_classes/hamcrest_classes_62_1.txt | heck the correct type.
**Parameters:** ` actualValue ` \- the object against which the matcher
is evaluated. **Returns:** ` true ` if item matches, otherwise ` false
` . **See Also:** [ ` BaseMatcher `
](../../../org/hamcrest/BaseMatcher.html "class in org.hamcrest")
* * *
### describeTo
... | |
hamcrest_classes/hamcrest_classes_0_0.txt | * * *
| [ **Overview** ](../../../overview-summary.html) | [ **Package** ](package-summary.html) | **Class** | [ **Use** ](class-use/IsArrayWithSize.html) | [ **Tree** ](package-tree.html) | [ **Deprecated** ](../../../deprecated-list.html) | [ **Index** ](../../../index-all.html) | [ **Help** ](../../../help-... | |
hamcrest_classes/class-Cake.Collection.Collection.html7_320_0.txt | ###### Returns
` Cake\Collection\CollectionInterface ` | |
hamcrest_classes/class-Cake.Collection.Collection.html7_265_0.txt |
stopWhen(callable $condition): Cake\Collection\Iterator\StoppableIterator
Creates a new collection that when iterated will stop yielding results if the
provided condition evaluates to false. | |
hamcrest_classes/hamcrest_classes_35_0.txt | * * *
| [ **Overview** ](../../../overview-summary.html) | [ **Package** ](package-summary.html) | **Class** | [ **Use** ](class-use/IsMapContaining.html) | [ **Tree** ](package-tree.html) | [ **Deprecated** ](../../../deprecated-list.html) | [ **Index** ](../../../index-all.html) | [ **Help** ](../../../help-... | |
hamcrest_classes/hamcrest_classes_33_3.txt | ./../allclasses-noframe.html)
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD
* * *
| |
hamcrest_classes/hamcrest_classes_69_1.txt | *
| |
hamcrest_classes/class-Cake.Collection.Collection.html7_118_0.txt | A common use case is to re-use the same variable for calculating different
data. In those cases it may be helpful and more performant to first compile a
collection and then apply more operations to it.
### Example: | |
hamcrest_classes/hamcrest_classes_1_12.txt | ](../../org/hamcrest/Matcher.html "interface in org.hamcrest")<T> **allOf**([Matcher](../../org/hamcrest/Matcher.html "interface in org.hamcrest")<? super T> first,
[Matcher](../../org/hamcrest/Matcher.html "interface in org.hamcrest")<? super T> second,
... | |
hamcrest_classes/class-Cake.Collection.Collection.html7_105_0.txt | ` Cake\Collection\CollectionInterface `
### chunk() ¶ public | |
hamcrest_classes/class-Cake.Collection.Collection.html7_256_0.txt | ` callable ` $c
| |
hamcrest_classes/hamcrest_classes_53_2.txt | nterface in org.hamcrest")<T> **is**(T value)
A shortcut to the frequently used ` is(equalTo(x)) ` .
For example:
assertThat(cheese, is(smelly))
instead of:
assertThat(cheese, is(equalTo(smelly)))
* * *
### is
@Deprecated
public static <T> [Matcher](../... | |
hamcrest_classes/class-Cake.Collection.Collection.html7_82_0.txt | Returns a callable that can be used to extract a property or column from an
array or object based on a dot separated path.
###### Parameters | |
hamcrest_classes/hamcrest_classes_23_1.txt | ) `
**Methods inherited from class java.lang.Object**
---
` clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait,
wait `
**Constructor Detail**
---
### HasProperty
public **HasProperty**(java.lang.String propertyName)
**Method Detail**
---
### matchesSafe... | |
hamcrest_classes/hamcrest_classes_64_0.txt | * * *
| [ **Overview** ](../../overview-summary.html) | [ **Package** ](package-summary.html) | **Class** | [ **Use** ](class-use/MatcherAssert.html) | [ **Tree** ](package-tree.html) | [ **Deprecated** ](../../deprecated-list.html) | [ **Index** ](../../index-all.html) | [ **Help** ](../../help-doc.html)
--... | |
hamcrest_classes/class-Cake.Collection.Collection.html7_140_0.txt |
###### Returns | |
hamcrest_classes/class-Cake.Collection.Collection.html7_84_0.txt | A dot separated path of column to follow so that the final one can be returned
or a callable that will take care of doing that.
###### Returns | |
hamcrest_classes/class-Cake.Collection.Collection.html7_157_0.txt | Filtering odd numbers in an array, at the end only the value 2 will be present
in the resulting collection:
$collection = (new Collection([1, 2, 3]))->filter(function ($value, $key) {
return $value % 2 === 0;
}); | |
hamcrest_classes/class-Cake.Collection.Collection.html7_182_0.txt | ###### Parameters
` string ` $path | |
hamcrest_classes/query-methods-details.html7_33_0.txt |
@Query("select u from User u")
Stream<User> findAllByCustomQueryAndStream();
Stream<User> readAllByFirstnameNotNull();
@Query("select u from User u")
Stream<User> streamAllPaged(Pageable pageable);
| A ` Stream ` potentially wraps underlying data store-specific resources and
mu... | |
hamcrest_classes/class-Cake.Collection.Collection.html7_237_0.txt | ###### Parameters
` callable ` $c | |
hamcrest_classes/query-methods-details.html7_24_0.txt | ## Repository Methods Returning Collections or Iterables
Query methods that return multiple results can use standard Java ` Iterable `
, ` List ` , and ` Set ` . Beyond that, we support returning Spring Data’s `
Streamable ` , a custom extension of ` Iterable ` , as well as collection
types provided by Vavr . Refer... | |
hamcrest_classes/hamcrest_classes_1_16.txt | t's ` equals ` method returns ` true ` when passed a `
null ` (which would be a violation of the ` equals ` contract), unless the
examined object itself is ` null ` , in which case the matcher will return a
positive match.
The created matcher provides a special behaviour when examining ` Array ` s,
whereby it will mat... | |
hamcrest_classes/hamcrest_classes_59_2.txt | g/hamcrest/text/IsEqualIgnoringCase.html "class in org.hamcrest.text") [ **NEXT CLASS** ](../../../org/hamcrest/text/StringContainsInOrder.html "class in org.hamcrest.text") | [ **FRAMES** ](../../../index.html?org/hamcrest/text/IsEqualIgnoringWhiteSpace.html) [ **NO FRAMES** ](IsEqualIgnoringWhiteSpace.html) [ **All ... | |
hamcrest_classes/class-Cake.Collection.Collection.html7_233_0.txt | ` mixed `
### reject() ¶ public | |
hamcrest_classes/hamcrest_classes_2_1.txt | when a
single pass over the examined ` Iterable ` yields a series of items, each
satisfying one matcher anywhere in the specified matchers.
` static | ` <T> [ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <java.lang.Iterable<? extends T>> `
---
` ` **[ containsInAnyOrder
](../../../o... | |
hamcrest_classes/class-Cake.Collection.Collection.html7_94_0.txt | ### append() ¶ public
append(arrayTraversable $items): Cake\Collection\CollectionInterface | |
hamcrest_classes/hamcrest_classes_8_1.txt | xt/IsEqualIgnoringWhiteSpace.html "class in
org.hamcrest.text") , [ IsEventFrom
](../../org/hamcrest/object/IsEventFrom.html "class in org.hamcrest.object") ,
[ IsIn ](../../org/hamcrest/collection/IsIn.html "class in
org.hamcrest.collection") , [ IsInstanceOf
](../../org/hamcrest/core/IsInstanceOf.html "class in org.h... | |
hamcrest_classes/using-matchers6_5_0.txt | * Getting Started
* Using Matchers
* Testing Asynchronous Code
* Setup and Teardown
* Mock Functions
* Jest Platform
* Jest Community
* More Resources
* Guides
* Framework Guides | |
hamcrest_classes/class-Cake.Collection.Collection.html7_285_0.txt | ###### Returns
` Cake\Collection\CollectionInterface ` | |
hamcrest_classes/hamcrest_classes_62_0.txt | * * *
| [ **Overview** ](../../../overview-summary.html) | [ **Package** ](package-summary.html) | **Class** | [ **Use** ](class-use/IsEqual.html) | [ **Tree** ](package-tree.html) | [ **Deprecated** ](../../../deprecated-list.html) | [ **Index** ](../../../index-all.html) | [ **Help** ](../../../help-doc.html... | |
hamcrest_classes/class-Cake.Collection.Collection.html7_292_0.txt | ` array `
### transpose() ¶ public | |
hamcrest_classes/query-methods-details.html7_32_0.txt | You can process the results of query methods incrementally by using a Java 8 `
Stream<T> ` as the return type. Instead of wrapping the query results in a `
Stream ` , data store-specific methods are used to perform the streaming, as
shown in the following example:
Stream the result of a query with Java 8 ` Stream<T> ` | |
hamcrest_classes/class-Cake.Collection.Collection.html7_63_0.txt | ## Method Detail
### __construct() ¶ public | |
hamcrest_classes/hamcrest_classes_53_1.txt | crest") **
---
` [ _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, equa... | |
hamcrest_classes/hamcrest_classes_1_17.txt | ullValue
public static <T> [Matcher](../../org/hamcrest/Matcher.html "interface in org.hamcrest")<T> **notNullValue**(java.lang.Class<T> type)
A shortcut to the frequently used ` not(nullValue(X.class)). Accepts a single dummy argument to facilitate type inference. ` .
For example:
... | |
hamcrest_classes/class-Cake.Collection.Collection.html7_267_0.txt | Get an array of lines in a CSV file until the timestamp column is less than a
date
$lines = (new Collection($fileLines))->stopWhen(function ($value, $key) {
return (new DateTime($value))->format('Y') < 2012;
})
->toArray(); | |
hamcrest_classes/class-Cake.Collection.Collection.html7_91_0.txt | ` mixed `
### _unwrap() ¶ public | |
hamcrest_classes/class-Cake.Collection.Collection.html7_58_0.txt | * ##### unfold() public
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. | |
hamcrest_classes/class-Cake.Collection.Collection.html7_271_0.txt | ` Cake\Collection\Iterator\StoppableIterator `
### sumOf() ¶ public | |
hamcrest_classes/hamcrest_classes_13_0.txt | * * *
| [ **Overview** ](../../../overview-summary.html) | [ **Package** ](package-summary.html) | **Class** | [ **Use** ](class-use/IsEqualIgnoringCase.html) | [ **Tree** ](package-tree.html) | [ **Deprecated** ](../../../deprecated-list.html) | [ **Index** ](../../../index-all.html) | [ **Help** ](../../../h... | |
hamcrest_classes/class-Cake.Collection.Collection.html7_229_0.txt | ### reduce() ¶ public
reduce(callable $c, mixed $zero = null): mixed | |
hamcrest_classes/class-Cake.Collection.Collection.html7_239_0.txt | ` Cake\Collection\Iterator\FilterIterator `
### sample() ¶ public | |
hamcrest_classes/class-Cake.Collection.Collection.html7_2_0.txt | * ###### Project:
* CakePHP
* CakePHP
* Chronos
* Elastic Search
* Queue
* ###### Version: | |
hamcrest_classes/hamcrest_classes_66_1.txt | .[ BaseMatcher
](../../../org/hamcrest/BaseMatcher.html "class in org.hamcrest") **
---
` [ _dont_implement_Matcher___instead_extend_BaseMatcher_
](../../../org/hamcrest/BaseMatcher.html#_dont_implement_Matcher___instead_extend_BaseMatcher_\(\))
, [ toString ](../../../org/hamcrest/BaseMatcher.html#toString\(\)) ` ... | |
hamcrest_classes/hamcrest_classes_56_0.txt | * * *
| [ **Overview** ](../../../overview-summary.html) | [ **Package** ](package-summary.html) | **Class** | [ **Use** ](class-use/IsCloseTo.html) | [ **Tree** ](package-tree.html) | [ **Deprecated** ](../../../deprecated-list.html) | [ **Index** ](../../../index-all.html) | [ **Help** ](../../../help-doc.ht... | |
hamcrest_classes/class-Cake.Collection.Collection.html7_323_0.txt | Generated using CakePHP API Docs
| |
hamcrest_classes/class-Cake.Collection.Collection.html7_75_0.txt | ### _extract() ¶ protected
_extract(arrayArrayAccess $data, array $path): mixed | |
hamcrest_classes/class-Cake.Collection.Collection.html7_13_0.txt | * ##### _propertyExtractor() protected
Returns a callable that can be used to extract a property or column from an
array or object based on a dot separated path. | |
hamcrest_classes/hamcrest_classes_63_3.txt | CLASS** ](../../../org/hamcrest/collection/IsIterableWithSize.html "class in org.hamcrest.collection") | [ **FRAMES** ](../../../index.html?org/hamcrest/collection/IsIterableContainingInOrder.html) [ **NO FRAMES** ](IsIterableContainingInOrder.html) [ **All Classes** ](../../../allclasses-noframe.html)
SUMMARY: NEST... | |
hamcrest_classes/hamcrest_classes_72_0.txt | * * *
| [ **Overview** ](../../overview-summary.html) | [ **Package** ](package-summary.html) | **Class** | [ **Use** ](class-use/DiagnosingMatcher.html) | [ **Tree** ](package-tree.html) | [ **Deprecated** ](../../deprecated-list.html) | [ **Index** ](../../index-all.html) | [ **Help** ](../../help-doc.html) ... | |
hamcrest_classes/class-Cake.Collection.Collection.html7_242_0.txt |
###### Returns | |
hamcrest_classes/hamcrest_classes_22_1.txt | ll.html) | [ **Help** ](../../../help-doc.html)
---|---|---|---|---|---|---|---
__
[ **PREV CLASS** ](../../../org/hamcrest/core/CombinableMatcher.html "class in org.hamcrest.core") [ **NEXT CLASS** ](../../../org/hamcrest/core/CombinableMatcher.CombinableEitherMatcher.html "class in org.hamcrest.core") | [ **F... | |
hamcrest_classes/class-Cake.Collection.Collection.html7_164_0.txt | Returns the first result matching all of the key-value pairs listed in
conditions.
###### Parameters | |
hamcrest_classes/using-matchers6_34_0.txt | * Privacy
* Terms
Copyright OpenJS Foundation and Jest contributors. All rights reserved. The
OpenJS Foundation has registered trademarks and uses trademarks. For a list
of trademarks of the OpenJS Foundation , please see our Trademark Policy
and Trademark List . Trademarks and logos not indicated on the... | |
hamcrest_classes/class-Cake.Collection.Collection.html7_64_0.txt |
__construct(arrayTraversable $items)
Constructor. You can provide an array or any traversable object | |
hamcrest_classes/class-Cake.Collection.Collection.html7_29_0.txt | * ##### first() public
Returns the first result in this collection | |
hamcrest_classes/class-Cake.Collection.Collection.html7_131_0.txt | ### countBy() ¶ public
countBy(callable|string $callback): Cake\Collection\CollectionInterface | |
hamcrest_classes/class-Cake.Collection.Collection.html7_88_0.txt |
Data. | |
hamcrest_classes/class-Cake.Collection.Collection.html7_26_0.txt | * ##### every() public
Returns true if all values in this collection pass the truth test provided in
the callback. | |
hamcrest_classes/class-Cake.Collection.Collection.html7_165_0.txt | ` array ` $conditions
| |
hamcrest_classes/hamcrest_classes_76_0.txt | * * *
| [ **Overview** ](../../overview-summary.html) | [ **Package** ](package-summary.html) | **Class** | [ **Use** ](class-use/JMock1Matchers.html) | [ **Tree** ](package-tree.html) | [ **Deprecated** ](../../deprecated-list.html) | [ **Index** ](../../index-all.html) | [ **Help** ](../../help-doc.html)
-... | |
hamcrest_classes/hamcrest_classes_70_0.txt | * * *
| [ **Overview** ](../../../overview-summary.html) | [ **Package** ](package-summary.html) | **Class** | [ **Use** ](class-use/AnyOf.html) | [ **Tree** ](package-tree.html) | [ **Deprecated** ](../../../deprecated-list.html) | [ **Index** ](../../../index-all.html) | [ **Help** ](../../../help-doc.html) ... | |
hamcrest_classes/hamcrest_classes_68_3.txt | ./../org/hamcrest/collection/IsArrayContainingInOrder.html "class in org.hamcrest.collection") | [ **FRAMES** ](../../../index.html?org/hamcrest/collection/IsArrayContainingInAnyOrder.html) [ **NO FRAMES** ](IsArrayContainingInAnyOrder.html) [ **All Classes** ](../../../allclasses-noframe.html)
SUMMARY: NESTED | FIE... | |
hamcrest_classes/hamcrest_classes_22_0.txt | * * *
| [ **Overview** ](../../../overview-summary.html) | [ **Package** ](package-summary.html) | **Class** | [ **Use** ](class-use/CombinableMatcher.CombinableBothMatcher.html) | [ **Tree** ](package-tree.html) | [ **Deprecated** ](../../../deprecated-list.html) | [ **Index** ](../../../index-all.html) | [ *... | |
hamcrest_classes/hamcrest_classes_5_1.txt | iagnosingMatcher.html#describeMismatch\(java.lang.Object, org.hamcrest.Description\)) ** (java.lang.Object item, [ Description ](../../org/hamcrest/Description.html "interface in org.hamcrest") mismatchDescription) `
Generate a description of why the matcher has not accepted the item.
` boolean ` | ` **[ matches ... | |
hamcrest_classes/class-Cake.Collection.Collection.html7_220_0.txt | ### Examples:
// For a collection of employees
$min = $collection->min('age');
$min = $collection->min('user.salary');
$min = $collection->min(function ($e) {
return $e->get('user')->get('salary');
});
// Display employee name
echo $min->name; | |
hamcrest_classes/hamcrest_classes_1_5.txt | er for ` Iterable ` s that matches when a
single pass over the examined ` Iterable ` yields a series of items, each
satisfying one matcher anywhere in the specified matchers.
` static | ` <T> [ Matcher ](../../org/hamcrest/Matcher.html "interface in org.hamcrest") <java.lang.Iterable<? extends T>> `
---
` ` **[... | |
hamcrest_classes/query-methods-details.html7_1_0.txt | Learn
Overview Quickstart Guides Blog | |
hamcrest_classes/query-methods-details.html7_43_0.txt | Defining sort expressions
Sort sort = Sort.by("firstname").ascending()
.and(Sort.by("lastname").descending()); | |
hamcrest_classes/class-Cake.Collection.Collection.html7_315_0.txt | ### zipWith() ¶ public
zipWith(arrayTraversable $items, callable $callable): Cake\Collection\CollectionInterface | |
hamcrest_classes/hamcrest_classes_1_15.txt | tcher.html "interface in org.hamcrest")<java.lang.Object> **anything**()
Creates a matcher that always matches, regardless of the examined object.
* * *
### anything
public static [Matcher](../../org/hamcrest/Matcher.html "interface in org.hamcrest")<java.lang.Object> **anything**(java.la... | |
hamcrest_classes/hamcrest_classes_9_1.txt | 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.
* * *
| [ **Overview** ](../../overview-summary.html) | [ **Package** ](package-summary.html) | **Class** | [ **Use** ... | |
hamcrest_classes/class-Cake.Collection.Collection.html7_290_0.txt | ### toList() ¶ public
toList(): array | |
hamcrest_classes/class-Cake.Collection.Collection.html7_172_0.txt | ` Cake\Collection\CollectionInterface `
### indexBy() ¶ public | |
hamcrest_classes/class-Cake.Collection.Collection.html7_17_0.txt | * ##### buffered() public
Returns a new collection where the operations performed by this collection. No
matter how many times the new collection is iterated, those operations will
only be performed once. | |
hamcrest_classes/class-Cake.Collection.Collection.html7_200_0.txt |
` string|callable ` $nestingKey optional
| |
hamcrest_classes/hamcrest_classes_57_0.txt | ## Frame Alert
This document is designed to be viewed using the frames feature. If you see
this message, you are using a non-frame-capable web client.
Link to [ Non-frame version. ](overview-summary.html)
| |
hamcrest_classes/class-Cake.Collection.Collection.html7_312_0.txt |
$collection = new Collection([1, 2]);
$collection->zip([3, 4], [5, 6])->toList(); // returns [[1, 3, 5], [2, 4, 6]]
###### Parameters | |
hamcrest_classes/using-matchers6_29_0.txt | Next
Testing Asynchronous Code | |
hamcrest_classes/class-Cake.Collection.Collection.html7_52_0.txt | * ##### sumOf() public
Returns the total sum of all the values extracted with $matcher or of this
collection. | |
hamcrest_classes/class-Cake.Collection.Collection.html7_277_0.txt |
take(int $size = 1, int $from = 0): Cake\Collection\CollectionInterface
Returns a new collection with maximum $size elements in the internal order
this collection was created. If a second parameter is passed, it will
determine from what position to start taking elements. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.