FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Java/Searches/SearchAlgorithm.java at master · iDev-git/Java · GitHub
iDev-git
Java
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Java
/
Searches
/
SearchAlgorithm.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (15 loc) · 445 Bytes
Breadcrumbs
Java
/
Searches
/
SearchAlgorithm.java
Copy path
File metadata and controls
17 lines (15 loc) · 445 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package
Searches
;
/**
* The common interface of most searching algorithms
*
* @author Podshivalov Nikita (https://github.com/nikitap492)
*/
public
interface
SearchAlgorithm
{
/**
* @param key is an element which should be found
* @param array is an array where the element should be found
* @param <T> Comparable type
* @return first found index of the element
*/
<
T
extends
Comparable
<
T
>>
int
find
(
T
array
[],
T
key
);
}
Back
|
FazBrowse Home
|
New Git URL