Skip to content

Commit

Permalink
Update equality-and-identity-part1.md
Browse files Browse the repository at this point in the history
  • Loading branch information
soc committed Jan 5, 2024
1 parent 9ec9a62 commit edf023f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions _interfaces/base-uid.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@ markdeep: true

### Motivation

- Compact
Uses 20 characters for 120 bits
- Compact
Uses 20 characters for 120 bits.
- Compatible
Can be used in URLs, form-fields and as HTML attributes
Can be used in URLs, form-fields and as HTML attributes.
- Convenient
The bitstring and the encoded string sort the same.
- Database-friendly
Time-prefix improves database locality and performance
Time-prefix improves database locality and performance.
- Efficient
Makes most out of the available bits
Makes most out of the available bits.

### Structure of a BaseUid

Expand Down
2 changes: 1 addition & 1 deletion _languages/equality-and-identity-part1.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on references, often called _reference equality_. Here are a few examples:
#### Java

- `==` implements reference equality on reference types.
- `Object.equals` and `Objects.equals` implement reference equality be default, but can be overridden to implement value equality on reference types.
- `Object.equals` and `Objects.equals` implement reference equality by default, but can be overridden to implement value equality on reference types.
- `Arrays.deepEquals` implements value equality on arrays (`equals` does reference equality on arrays).
- `==` implements value equality on primitive types.
- Primitive types can be implicitly converted to special wrapper classes, which implement `equals` slightly differently.
Expand Down

0 comments on commit edf023f

Please sign in to comment.