Package com.intellij.util.io
Class StringKeyProvider
- java.lang.Object
-
- com.intellij.util.io.StringKeyProvider
-
- All Implemented Interfaces:
ByteBufferMap.KeyProvider<String>
public class StringKeyProvider extends Object implements ByteBufferMap.KeyProvider<String>
-
-
Field Summary
Fields Modifier and Type Field Description static StringKeyProvider
INSTANCE
static String
UTF_8_CHARSET_NAME
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(DataInput in, String key)
Should move the buffer pointer to the key end.String
get(DataInput in)
int
hashCode(String key)
int
length(String key)
void
write(DataOutput out, String key)
-
-
-
Field Detail
-
INSTANCE
public static final StringKeyProvider INSTANCE
-
UTF_8_CHARSET_NAME
@NonNls public static final String UTF_8_CHARSET_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
hashCode
public int hashCode(String key)
- Specified by:
hashCode
in interfaceByteBufferMap.KeyProvider<String>
-
write
public void write(DataOutput out, String key) throws IOException
- Specified by:
write
in interfaceByteBufferMap.KeyProvider<String>
- Throws:
IOException
-
length
public int length(String key)
- Specified by:
length
in interfaceByteBufferMap.KeyProvider<String>
-
get
public String get(DataInput in) throws IOException
- Specified by:
get
in interfaceByteBufferMap.KeyProvider<String>
- Throws:
IOException
-
equals
public boolean equals(DataInput in, String key) throws IOException
Description copied from interface:ByteBufferMap.KeyProvider
Should move the buffer pointer to the key end.- Specified by:
equals
in interfaceByteBufferMap.KeyProvider<String>
- Throws:
IOException
-
-