« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 29 for Hashable (0.006 sec.)
Determines whether an object is equal to the current instance 11567
« Ds\Hashable Ds\Hashable::hash » PHP Manual Ds\Hashable Determines whether an object is equal to the current instance 検索 Ds\Hashable::equals (PECL ds >= 1.0.0) Ds\Hashable::equals — Determines whether an object is equal to the current in ... stance 説明 abstract public function Ds\Hashable::equals ( object $obj ): bool Determines whether another object is equal to the current instance. This method allows objec ... j is an instance of the same class. 警告 It's important that objects which are equal also have the same hash value. See Ds\Hashable::hash() . パラメータ obj The object to compare the current instance to, which is always an instance of the same class. 戻り ... 値 true if equal, false otherwise. 関連キーワード: instance Hashable object equal current Determines whether hash equals obj objects class Search abstract function bool method allows used key ...
https://man.mtool.work/php/8.3/ds-hashable.equals.html
Determines whether an object is equal to the current instance 11518
« Ds\Hashable Ds\Hashable::hash » PHP Manual Ds\Hashable Determines whether an object is equal to the current instance 検索 Ds\Hashable::equals (PECL ds >= 1.0.0) Ds\Hashable::equals — Determines whether an object is equal to the current in ... stance 説明 abstract public function Ds\Hashable::equals ( object $obj ): bool Determines whether another object is equal to the current instance. This method allows objec ... j is an instance of the same class. 警告 It's important that objects which are equal also have the same hash value. See Ds\Hashable::hash() . パラメータ obj The object to compare the current instance to, which is always an instance of the same class. 戻り ... 値 true if equal, false otherwise. 関連キーワード: instance Hashable equal current Determines whether hash equals objects abstract method allows used keys structures lookup structure honors i ...
https://man.mtool.work/php/8.3/ds-hashable.equals.html
The Hashable interface 11127
« Ds\Collection::toArray Ds\Hashable::equals » PHP Manual Data Structures The Hashable interface 検索 The Hashable interface (PECL ds >= 1.0.0) はじめに Hashable is an interface which allows objects to be used as keys. It's an alternative t ... aranteed that the comparing object will be an instance of the same class as the subject. インターフェイス概要 interface Ds\Hashable { /* メソッド */ abstract public function equals ( object $obj ): bool abstract public function hash (): mixed } 目次 Ds\H ... ashable::equals — Determines whether an object is equal to the current instance Ds\Hashable::hash — Returns a scalar value to be used as a hash value 関連キーワード: hash Hashable object value interface used equal ...
https://man.mtool.work/php/8.3/class.ds-hashable.html
The Hashable interface 11078
« Ds\Collection::toArray Ds\Hashable::equals » PHP Manual Data Structures The Hashable interface 検索 The Hashable interface (PECL ds >= 1.0.0) はじめに Hashable is an interface which allows objects to be used as keys. It's an alternative t ... aranteed that the comparing object will be an instance of the same class as the subject. インターフェイス概要 interface Ds\Hashable { /* メソッド */ abstract public function equals ( object $obj ): bool abstract public function hash (): mixed } 目次 Ds\H ... ashable::equals — Determines whether an object is equal to the current instance Ds\Hashable::hash — Returns a scalar value to be used as a hash value 関連キーワード: hash Hashable interface used equal equals object ...
https://man.mtool.work/php/8.3/class.ds-hashable.html
Returns a scalar value to be used as a hash value 10637
« Ds\Hashable::equals Ds\Sequence » PHP Manual Ds\Hashable Returns a scalar value to be used as a hash value 検索 Ds\Hashable::hash (PECL ds >= 1.0.0) Ds\Hashable::hash — Returns a scalar value to be used as a hash value 説明 abstract publi ... c function Ds\Hashable::hash (): mixed Returns a scalar value to be used as the hash value of the objects. While the hash value does not define e ... quality, all objects that are equal according to Ds\Hashable::equals() must have the same hash value. Hash values of equal objects don't have to be unique, for example you could just ... e. パラメータ この関数にはパラメータはありません。 戻り値 A scalar value to be used as this object's hash value. 例 例1 Ds\Hashable::hash() example <?php class HashableObject implements \Ds\Hashable { private $name ; private $email ; public function __co ...
https://man.mtool.work/php/8.3/ds-hashable.hash.html
Returns a scalar value to be used as a hash value 10637
« Ds\Hashable::equals Ds\Sequence » PHP Manual Ds\Hashable Returns a scalar value to be used as a hash value 検索 Ds\Hashable::hash (PECL ds >= 1.0.0) Ds\Hashable::hash — Returns a scalar value to be used as a hash value 説明 abstract publi ... c function Ds\Hashable::hash (): mixed Returns a scalar value to be used as the hash value of the objects. While the hash value does not define e ... quality, all objects that are equal according to Ds\Hashable::equals() must have the same hash value. Hash values of equal objects don't have to be unique, for example you could just ... e. パラメータ この関数にはパラメータはありません。 戻り値 A scalar value to be used as this object's hash value. 例 例1 Ds\Hashable::hash() example <?php class HashableObject implements \Ds\Hashable { private $name ; private $email ; public function __co ...
https://man.mtool.work/php/8.3/ds-hashable.hash.html
Adds values to the set 8321
« Ds\Set Ds\Set::allocate » PHP Manual Ds\Set Adds values to the set 検索 Ds\Set::add (PECL ds >= 1.0.0) Ds\Set::add — Adds values to the set 説明 public function Ds\Set::add ( mixed ...$values ): void Adds all given values to the set that ... haven't already been added. 注意 : Values of type object are supported. If an object implements Ds\Hashable , equality will be determined by the object's equals function. If an object does not implement Ds\Hashable , objects must ... nt(1) [1]=> int(2) [2]=> int(3) [3]=> string(1) "1" [4]=> bool(true) } 例2 Ds\Set::add() example using objects <?php class HashableObject implements \Ds\Hashable { /** * An arbitrary value to use as the hash value. Does not define equality. */ private $v ... t will add them all. $set -> add (new \stdClass ()); $set -> add (new \stdClass ()); // Adding multiple instances of equal hashable objects will only add the first. $set -> add (new \HashableObject ( 1 )); $set -> add (new \HashableObject ( 1 )); $set -> ...
https://man.mtool.work/php/8.3/ds-set.add.html
Adds values to the set 8321
« Ds\Set Ds\Set::allocate » PHP Manual Ds\Set Adds values to the set 検索 Ds\Set::add (PECL ds >= 1.0.0) Ds\Set::add — Adds values to the set 説明 public function Ds\Set::add ( mixed ...$values ): void Adds all given values to the set that ... haven't already been added. 注意 : Values of type object are supported. If an object implements Ds\Hashable , equality will be determined by the object's equals function. If an object does not implement Ds\Hashable , objects must ... nt(1) [1]=> int(2) [2]=> int(3) [3]=> string(1) "1" [4]=> bool(true) } 例2 Ds\Set::add() example using objects <?php class HashableObject implements \Ds\Hashable { /** * An arbitrary value to use as the hash value. Does not define equality. */ private $v ... t will add them all. $set -> add (new \stdClass ()); $set -> add (new \stdClass ()); // Adding multiple instances of equal hashable objects will only add the first. $set -> add (new \HashableObject ( 1 )); $set -> add (new \HashableObject ( 1 )); $set -> ...
https://man.mtool.work/php/8.3/ds-set.add.html
Associates a key with a value 8125
« Ds\Map::pairs Ds\Map::putAll » PHP Manual Ds\Map Associates a key with a value 検索 Ds\Map::put (PECL ds >= 1.0.0) Ds\Map::put — Associates a key with a value 説明 public function Ds\Map::put ( mixed $key , mixed $value ): void Associates ... e , overwriting a previous association if one exists. 注意 : Keys of type object are supported. If an object implements Ds\Hashable , equality will be determined by the object's equals function. If an object does not implement Ds\Hashable , objects must ... ue] => 2 ) [2] => Ds\Pair Object ( [key] => c [value] => 3 ) ) 例2 Ds\Map::put() example using objects as keys <?php class HashableObject implements \Ds\Hashable { /** * An arbitrary value to use as the hash value. Does not define equality. */ private $v ... associations. $map -> put (new \stdClass (), 3 ); $map -> put (new \stdClass (), 4 ); // Using multiple instances of equal hashable objects will overwrite previous values. $map -> put (new \HashableObject ( 1 ), 5 ); $map -> put (new \HashableObject ( 1 ...
https://man.mtool.work/php/8.3/ds-map.put.html
Associates a key with a value 8125
« Ds\Map::pairs Ds\Map::putAll » PHP Manual Ds\Map Associates a key with a value 検索 Ds\Map::put (PECL ds >= 1.0.0) Ds\Map::put — Associates a key with a value 説明 public function Ds\Map::put ( mixed $key , mixed $value ): void Associates ... e , overwriting a previous association if one exists. 注意 : Keys of type object are supported. If an object implements Ds\Hashable , equality will be determined by the object's equals function. If an object does not implement Ds\Hashable , objects must ... ue] => 2 ) [2] => Ds\Pair Object ( [key] => c [value] => 3 ) ) 例2 Ds\Map::put() example using objects as keys <?php class HashableObject implements \Ds\Hashable { /** * An arbitrary value to use as the hash value. Does not define equality. */ private $v ... associations. $map -> put (new \stdClass (), 3 ); $map -> put (new \stdClass (), 4 ); // Using multiple instances of equal hashable objects will overwrite previous values. $map -> put (new \HashableObject ( 1 ), 5 ); $map -> put (new \HashableObject ( 1 ...
https://man.mtool.work/php/8.3/ds-map.put.html
PREV 1 2 3 NEXT