1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
|
//start of HashMethod.java
//TEXT_STYLE:CODE=Shift_JIS(Japanese):RET_CODE=CRLF
/**
* HashMethod.java
*
* Copyright (C) 2002 Michel Ishizuka All rights reserved.
*
* ȉ̏ɓӂȂ\[XƃoCi`̍ĔzzƎgp
* ύX̗Lɂ炸B
*
* PD\[XR[h̍ĔzzɂĒ쌠\ ̏̃Xg
* щL̐ێȂĂ͂ȂȂB
*
* QDoCi`̍ĔzzɂĒ쌠\ ̏̃Xg
* щL̐gp ̑̔zz
* ܂ގɋLqȂȂȂB
*
* ̃\tgEFA͐Β˔ڂɂĖۏŒA̖
* IBłƂۏAilLƂۏɂƂǂ܂炸A
* Ȃ閾IшÎIȕۏȂB
* Β˔ڂ ̃\tgEFA̎gpɂ钼ړIAԐړIA
* IAȁAT^IȁA邢͕KRIȑQ(gpɂf[^
* AƖ̒f〈܂Ăv̈⎸Ai
* T[rX̓l邪AĂꂾɌ肳Ȃ
* Q)ɑāAȂ鎖Ԃ̌ƂȂƂĂA_̐
* C△ߎӔC܂ ȂӔC낤ƂAƂꂪs
* ŝׂ߂łƂĂA܂͂̂悤ȑQ̉\
* ĂƂĂ̐ӔCȂ̂ƂB
*/
package jp.gr.java_conf.dangan.util.lha;
//import classes and interfaces
//import exceptions
/**
* nbVC^[tFCXB<br>
* <br>
* RXgN^̌`
* <pre>
* HashMethod( byte[] TextBuffer )
*
* <strong>p[^:</strong>
* TextBuffer - LZSSk{f[^̓obt@
* </pre>
* ̂悤Ȍ`ɑ邱ƁB<br>
* ܂Alj̈Ƃ肽ꍇ
* <pre>
* HashMethod( byte[] TextBuffer,
* Object ExtraData1,
* Object ExtraData2 )
* </pre>
* ̂悤Ȍ`pB<br>
* ȂARXgN^̈`FbN͒lj̈ꍇɂčs悢B
*
* <pre>
* -- revision history --
* $Log: HashMethod.java,v $
* Revision 1.0 2002/08/05 00:00:00 dangan
* add to version cotrol
* [change]
* requiredSize() hashRequires() ɖOύXB
* size() tableSize() OύXB
* [maintanance]
* \[X
* ^up~
* CZX̏C
*
* </pre>
*
* @author $Author: dangan $
* @version $Revision: 1.0 $
*/
public interface HashMethod{
//------------------------------------------------------------------
// original method
//------------------------------------------------------------------
// public abstract int hash( int position )
// public abstract int hashRequires()
// public abstract int tableSize()
//------------------------------------------------------------------
/**
* nbVB
* RXgN^œnꂽ TextBuffer
* position ̃f[^p^ hashlB
*
* @param position f[^p^̊Jnʒu
*
* @return nbVl
*/
public abstract int hash( int position );
/**
* nbV
* nbVl邽߂ɎgpoCgB
*
* @return nbVnbVl
* 邽߂ɎgpoCg
*/
public abstract int hashRequires();
/**
* HashMethod gꍇ
* HashTable ̃TCYB
*
* @return HashMethod gꍇ HashTable ̃TCY
*/
public abstract int tableSize();
}
//end of HashMethod.java
|