-
Deprecated FieldsFieldDescriptionfor internal only.for internal only.for internal only.DO NOT call the methods defined in this class. it's for internal use only.
-
Deprecated MethodsMethodDescriptionuse
name
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.UnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionto 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 calledUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionto be removed in future version.to be removed in future version.to be removed in future version.UnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptionUnsupportedOperationExceptioninternal 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
the ImmutableBiMap may be modified through the specifiedmap
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
the ImmutableCollection may be modified through the specifiedCollection
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
the ImmutableList may be modified through the specifiedlist
- UnsupportedOperationException- UnsupportedOperationExceptionthrowsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
throwsUnsupportedOperationException
the ImmutableMap may be modified through the specifiedmap
throwsUnsupportedOperationException
throwsUnsupportedOperationException
the ImmutableNavigableMap may be modified through the specifiednavigableMap
throwsUnsupportedOperationException
- UnsupportedOperationException- UnsupportedOperationExceptionthe ImmutableNavigableSet may be modified through the specifiednavigableSet
throwsUnsupportedOperationException
throwsUnsupportedOperationException
the ImmutableSet may be modified through the specifiedset
throwsUnsupportedOperationException
throwsUnsupportedOperationException
the ImmutableSortedMap may be modified through the specifiedsortedMap
throwsUnsupportedOperationException
the ImmutableSortedSet may be modified through the specifiedsortedSet
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)
Use#create(Collection<? extends T>,Function<? super T, ? extends K>)
insteadUse#create(Collection<? extends T>,Function<? super T, ? extends K>,Function<? super T, ? extends V>)
insteadUse#create(Collection<? extends T>,Function<? super T, ? extends K>,Function<? super T, ? extends V>,BinaryOperator<V>,IntFunction<? extends M>)
insteadUse#create(Collection<? extends T>,Function<? super T, ? extends K>,Function<? super T, ? extends V>,IntFunction<? extends M>)
insteadUse#create(Iterator<? extends T>,Throwables.Function<? super T, K, E>)
insteadUse#create(Iterator<? extends T>,Throwables.Function<? super T, K, E>,Function<? super T, ? extends V>)
insteadUse#create(Iterator<? extends T>,Throwables.Function<? super T, K, E>,Function<? super T, ? extends V>,BinaryOperator<V>,Supplier<? extends M>)
insteadUse#create(Iterator<? extends T>,Throwables.Function<? super T, K, E>,Function<? super T, ? extends V>,Supplier<? extends M>)
insteadUseFn.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()
.use traditional for-loopuse traditional for-loopreplaced byComparators.reverseOrder(Comparator)
usereplaceAll
usereplaceIf
UnsupportedOperationExceptionthrow UnsupportedOperationreplaced bytotalPages
should calltoArray()
replaced bygetException
replaced byResult.orElseIfFailure(Object)
replaced byResult.orElseGetIfFailure(Throwables.Supplier)
replaced byRetryR#iterate(Iterator, int)
.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
UseStream.skipNulls()
insteaduseNumbers.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)
insteadSplitter
is recommended.Splitter
is recommended.Splitter
is recommended.Splitter
is recommended.you 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()
usingu.Nullable.orElseNull()
to be removed in future version.usingu.Optional.orElseNull()
use {@link #orElse(false)}use {@link #orElse(true)}to be removed in future version.to be removed in future version.to be removed in future version. - For security:
-
Deprecated Constructors
-
Deprecated Enum ConstantsEnum 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.
-
Deprecated Annotation Interface ElementsAnnotation Interface ElementDescriptionuse
name
to specify attribute explicitly.usename
to specify attribute explicitly.usename
to specify attribute explicitly.