-
FieldDescriptionfor internal only.for internal only.for internal only.DO NOT call the methods defined in this class. it's for internal use only.
-
MethodDescriptionuse
name
to specify attribute explicitly.usename
to specify attribute explicitly.usename
to specify attribute explicitly.usename
to specify attribute explicitly.For Android users, see the Data and File Storage overview to select an appropriate temporary directory (perhapscontext.getCacheDir()
). For developers on Java 7 or later, useFiles.createTempDirectory(java.nio.file.Path, java.lang.String, java.nio.file.attribute.FileAttribute<?>...)
, transforming it to aFile
usingtoFile()
if needed.If you must interoperate with a system that requires MD5, then use this method, despite its deprecation. But if you can choose your hash function, avoid MD5, which is neither fast nor secure. As of January 2017, we suggest:- For security:
Hashing.sha256()
or a higher-level API. - For speed:
Hashing.goodFastHash(int)
, though see its docs for caveats.
If you must interoperate with a system that requires SHA-1, then use this method, despite its deprecation. But if you can choose your hash function, avoid SHA-1, which is neither fast nor secure. As of January 2017, we suggest:- For security:
Hashing.sha256()
or a higher-level API. - For speed:
Hashing.goodFastHash(int)
, though see its docs for caveats.
no use case?replaced byOkHttpRequest.formBody(Object)
.replaced byOkHttpRequest.formBody(Map)
.no use case?to be removed in future version.to be removed in future version.to be removed in future version.to be removed in future version.to be removed in future version.to be removed in future version.to be removed in future version.to be removed in future version.to be removed in future version.UseJSONDeserializationConfig.readNullToEmpty()
insteadto be removed in future version.to be removed in future version.to be removed in future version.to be removed in future version.this method should not be calledthis method should not be calledthis method should not be calledthis method should not be calledthis method should not be calledto be removed in future version.to be removed in future version.to be removed in future version.internal use only.to be removed in future version.to be removed in future version.to be removed in future version.to be removed in future version.to be removed in future version.to be removed in future version.this method should not be calledthis method should not be calledthis method should not be calledthis method should not be calledthis method should not be calledto be removed in future version.to be removed in future version.to be removed in future version.to be removed in future version.please useN.asArray(Object...)
.prefer toArray.repeatNonNull(Object, int)
orArray.repeat(Object, int, Class)
because this method throws NullPointerException when element isnull
usenextBoolean()
instead.replaced by write(char).usenextByte()
instead.usenextChar()
instead.replaced byCheckedStream.transform(Function)
UseCheckedStream.skipNulls()
insteadreplaced byaddYears/addMonths/addWeeks/...
replaced byaddYears/addMonths/addWeeks/...
usenextDouble()
instead.usenextFloat()
instead.replaced bygtAndLt
.replaced by#ofAddAllToFirst()
replaced by#ofAppendToFirst()
replaced by#ofMergeToFirst
.replaced by#ofPutAllToFirst()
replaced by#ofRemoveAllFromFirst()
.replaced byFn#entryByKeyMapper(Function)
replaced byFn#entryWithKey(Object)
unsupported operation.unsupported operation.unsupported operation.replaced bynullToEmptyList
replaced bynullToEmptyMap
replaced bynullToEmptySet
unsupported operation.unsupported operation.unsupported operation.replaced bydenominator
replaced bynumerator
replaced byproperNumerator
replaced byproperWhole
replaced byHolder.ifNotNull(Throwables.Consumer)
replace byHolder.value()
.the ImmutableArray may be modified through the specifiedelements
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
- UnsupportedOperationException- UnsupportedOperationExceptionthrowsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
- UnsupportedOperationException- UnsupportedOperationExceptionthrowsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
DO NOT call the methods defined in this class. it's for internal use only.usenextInt()
instead.replaced byIOUtil.readAllLines(File)
replaced byIOUtil.readAllLines(File, Charset)
replaced byIOUtil.readAllLines(InputStream)
replaced byIOUtil.readAllLines(InputStream, Charset)
replaced byIOUtil.readAllLines(Reader)
Use#skipNulls(Iterator<? extends T>)
insteadreplaced byJoiner.reuseCachedBuffer()
replaced byJoiner.skipNulls()
replaced byJoiner.trimBeforeAppend()
usenextLong()
instead.replaced byCommonUtil.newEntry(Object, Object)
replaced byCommonUtil.newImmutableEntry(Object, Object)
UseFn.switchOnNext()
insteadreplace byMutableBoolean.value()
.replace byMutableByte.value()
.replace byMutableChar.value()
.replace byMutableDouble.value()
.replace byMutableFloat.value()
.replace byMutableInt.value()
.replace byMutableLong.value()
.replace byMutableShort.value()
.usereplaceAll
usereplaceIf
UnsupportedOperationExceptionthrow UnsupportedOperationreplaced bytotalPages
should calltoArray()
replaced bygetException
replaced byResult.orElseIfFailure(Object)
replaced byResult.orElseGetIfFailure(Throwables.Supplier)
for internal use onlyfor internal use onlyfor internal use onlyfor internal use onlyfor internal use onlyusenextShort()
instead.replaced bySplitter.MapSplitter.omitEmptyStrings()
replaced bySplitter.MapSplitter.stripResults()
replaced bySplitter.MapSplitter.trimResults()
replaced bySplitter.omitEmptyStrings()
replaced bySplitter.stripResults()
replaced bySplitter.trimResults()
replaced byBaseStream.transform(Function)
? may cause memory/resource leak if forget to close thisStream
useNumbers.isNumber(String)
insteadreplaced byNumbers.toByte(String)
replaced byNumbers.toDouble(String)
replaced byNumbers.toFloat(String)
replaced byNumbers.toInt(String)
replaced byNumbers.toLong(String)
replaced byNumbers.toShort(String)
UseStrings.replaceFirst(String,int,String,String)
insteadUseStrings.replaceFirst(String,String,String)
insteadyou should consider usingclass Some Bean/Record class: MyRecord { final T1 propName1, final T2 propName2...}
you should consider usingclass Some Bean/Record class: MyRecord { final T1 propName1, final T2 propName2...}
replaced byu.Nullable.isNotPresent()
to be removed in future version.to be removed in future version.to be removed in future version.to be removed in future version. - For security:
-
Enum ConstantDescriptiondon't need to set it. It's
DEFAULT
by default.not supported at present.not supported at present.not supported at present.not supported at present.not supported at present.not supported at present.not supported at present.not supported at present.
-
Annotation Interface ElementDescriptionuse
name
to specify attribute explicitly.usename
to specify attribute explicitly.usename
to specify attribute explicitly.usename
to specify attribute explicitly.