Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Codeforces/codeforces-commons
/ functions
Functions
1,652 in github.com/Codeforces/codeforces-commons
⨍
Functions
1,652
◇
Types & classes
191
↓ 4 callers
Method
expandWindowsStyleSystemVariables
(@Nonnull String value)
code/src/main/java/com/codeforces/commons/system/EnvironmentUtil.java:49
↓ 4 callers
Method
fromSystemDateString
(@Nonnull String systemDateTimeString)
code/src/main/java/com/codeforces/commons/time/TimeUtil.java:80
↓ 4 callers
Method
fromSystemDateTimeString
(@Nonnull String systemDateTimeString)
code/src/main/java/com/codeforces/commons/time/TimeUtil.java:85
↓ 4 callers
Method
fromSystemShortDateTimeString
(@Nonnull String systemDateTimeString)
code/src/main/java/com/codeforces/commons/time/TimeUtil.java:90
↓ 4 callers
Method
fromSystemTimeString
(@Nonnull String systemDateTimeString)
code/src/main/java/com/codeforces/commons/time/TimeUtil.java:95
↓ 4 callers
Method
getBytes
()
code/src/main/java/com/codeforces/commons/io/http/HttpResponse.java:60
↓ 4 callers
Method
getExpirationTimeMillis
()
code/src/main/java/com/codeforces/commons/cache/InmemoryCache.java:364
↓ 4 callers
Method
getFilename
(@Nonnull String section, @Nonnull String key)
code/src/main/java/com/codeforces/commons/cache/RedisByteCache.java:68
↓ 4 callers
Method
getIllegalResponseLengthMessage
(HttpResponse response, int expectedLength)
code/src/test/java/com/codeforces/commons/io/http/HttpUtilTest.java:442
↓ 4 callers
Method
getInner
()
code/src/test/java/com/codeforces/commons/reflection/ReflectionUtilTest.java:199
↓ 4 callers
Method
getProperty
(String propertyName, String defaultValue)
code/src/main/java/com/codeforces/commons/properties/internal/CommonsPropertiesUtil.java:25
↓ 4 callers
Method
getRandomLong
Returns the next pseudo-random, uniformly distributed {@code long} value. @return random {@code long}
code/src/main/java/com/codeforces/commons/math/RandomUtil.java:123
↓ 4 callers
Method
getRandomString
(int length)
code/src/test/java/com/codeforces/commons/io/http/HttpUtilTest.java:602
↓ 4 callers
Method
getRandomStringUnchecked
(@Nonnull char[] characterSet, @Nonnegative int length)
code/src/main/java/com/codeforces/commons/math/RandomUtil.java:154
↓ 4 callers
Method
getResourceAsString
(@Nonnull Class clazz, @Nonnull String resourceName)
code/src/main/java/com/codeforces/commons/resource/ResourceUtil.java:54
↓ 4 callers
Method
getValueLocation
(@Nonnull String section, @Nonnull String key)
code/src/main/java/com/codeforces/commons/cache/FileSystemByteCache.java:300
↓ 4 callers
Method
getZipArchiveInfo
(File zipFile)
code/src/main/java/com/codeforces/commons/compress/ZipUtil.java:602
↓ 4 callers
Method
getZipEntryBytes
(File zipFile, String zipEntryPath)
code/src/main/java/com/codeforces/commons/compress/ZipUtil.java:544
↓ 4 callers
Method
hypot
(double cathetusA, double cathetusB)
code/src/main/java/com/codeforces/commons/math/Math.java:457
↓ 4 callers
Method
internalExecuteGetRequest
( @Nullable HttpClient httpClient, boolean encodeParameters, String url, Object... parameters
code/src/main/java/com/codeforces/commons/io/http/HttpClientUtil.java:258
↓ 4 callers
Method
internalExecutePostRequest
( @Nullable HttpClient httpClient, String url, Object... parameters)
code/src/main/java/com/codeforces/commons/io/http/HttpClientUtil.java:429
↓ 4 callers
Method
internalNewHttpClient
( HttpClientConnectionManagerBuilder connectionManagerBuilder)
code/src/main/java/com/codeforces/commons/io/http/HttpClientUtil.java:570
↓ 4 callers
Method
internalPut
(String section, String key, byte[] value, long lifetimeMillis, boolean overwrite)
code/src/main/java/com/codeforces/commons/cache/FileSystemByteCache.java:105
↓ 4 callers
Method
internalPutIfAbsent
(ByteCache cache, String section, String key, byte[] value, boolean optional)
code/src/main/java/com/codeforces/commons/cache/util/LocalAndRemoteByteCache.java:123
↓ 4 callers
Method
internalTestConcurrentStoringOfValuesWithLifetime
( long valueLifetimeMillis, long valueCheckIntervalMillis)
code/src/test/java/com/codeforces/commons/cache/BaseByteCacheTest.java:136
↓ 4 callers
Method
isEmpty
(@Nullable Collection collection)
code/src/main/java/com/codeforces/commons/collection/CollectionUtil.java:122
↓ 4 callers
Method
isEmpty
()
code/src/main/java/com/codeforces/commons/rate/RateUtil.java:145
↓ 4 callers
Method
isNode
Checks if xml contains a node specified by xPath. @param xmlInputStream XML to be scanned. @param xPath XPath expression. @return {@code tru
code/src/main/java/com/codeforces/commons/xml/XmlUtil.java:104
↓ 4 callers
Method
lockAndExecute
(Runnable invocation, Lock lock)
code/src/main/java/com/codeforces/commons/cache/InmemoryCache.java:312
↓ 4 callers
Method
nearlyEquals
(@Nullable Float numberA, @Nullable Float numberB, float epsilon)
code/src/main/java/com/codeforces/commons/math/NumberUtil.java:555
↓ 4 callers
Method
newHttpClient
()
code/src/main/java/com/codeforces/commons/io/http/HttpClientUtil.java:542
↓ 4 callers
Method
newSimpleDateFormat
(@Nonnull String pattern, @Nullable Locale locale)
code/src/main/java/com/codeforces/commons/time/TimeUtil.java:75
↓ 4 callers
Method
normalize
(String s)
code/src/main/java/com/codeforces/commons/text/similarity/SimilarityChecker.java:40
↓ 4 callers
Method
normalizeValue
(int value, int maxValue)
code/src/main/java/com/codeforces/commons/concurrent/AtomicUtil.java:37
↓ 4 callers
Method
onRead
(long readByteCount, long totalReadByteCount)
code/src/main/java/com/codeforces/commons/io/CountingInputStream.java:134
↓ 4 callers
Method
put
(@Nonnull String section, @Nonnull String key, @Nonnull byte[] value)
code/src/main/java/com/codeforces/commons/cache/RedisByteCache.java:83
↓ 4 callers
Method
readLockSectionAndReturnResult
(String section, Supplier<T> invocation)
code/src/main/java/com/codeforces/commons/cache/InmemoryCache.java:280
↓ 4 callers
Method
setName
(String name)
code/src/test/java/com/codeforces/commons/reflection/ReflectionUtilTest.java:297
↓ 4 callers
Method
setX
(double x)
code/src/main/java/com/codeforces/commons/geometry/Point2D.java:36
↓ 4 callers
Method
setY
(double y)
code/src/main/java/com/codeforces/commons/geometry/Point2D.java:44
↓ 4 callers
Method
sha1
(InputStream inputStream)
code/src/main/java/com/codeforces/commons/io/IoUtil.java:30
↓ 4 callers
Method
sha1
(byte[] input)
code/src/main/java/com/codeforces/commons/text/StringUtil.java:1435
↓ 4 callers
Method
swap
(@Nonnull Mutable<T> mutableA, @Nonnull Mutable<T> mutableB)
code/src/main/java/com/codeforces/commons/holder/Holders.java:106
↓ 4 callers
Method
testGeneralFont
(FontRenderContext frc, String name)
code/src/main/java/com/codeforces/commons/text/StringUtil.java:1992
↓ 4 callers
Method
toString
()
code/src/test/java/com/codeforces/commons/cache/CachePath.java:26
↓ 4 callers
Method
toString
()
code/src/test/java/com/codeforces/commons/reflection/ReflectionUtilTest.java:253
↓ 4 callers
Method
toString
(Throwable e)
code/src/main/java/com/codeforces/commons/exception/ExceptionUtil.java:30
↓ 4 callers
Method
trimToNull
(@Nullable String s)
code/src/main/java/com/codeforces/commons/text/StringUtil.java:473
↓ 4 callers
Method
updateXml
Changes the value describing by XPath to specific value and updates file. @param xmlFile Which will read first and updated later. @param xPath XPat
code/src/main/java/com/codeforces/commons/xml/XmlUtil.java:170
↓ 4 callers
Method
write
(int value)
code/src/main/java/com/codeforces/commons/io/ByteArrayOutputStream.java:53
↓ 3 callers
Method
add
(E element)
code/src/main/java/com/codeforces/commons/collection/SetBuilder.java:21
↓ 3 callers
Method
add
(E element)
code/src/main/java/com/codeforces/commons/collection/CollectionBuilder.java:24
↓ 3 callers
Method
add
(E element)
code/src/main/java/com/codeforces/commons/collection/SortedSetBuilder.java:21
↓ 3 callers
Method
addAll
(@Nonnull @NonnullElements T[] values)
code/src/main/java/com/codeforces/commons/collection/QuadTree.java:112
↓ 3 callers
Method
addAsChild
( @Nonnull T value, double x, double y, @Nonnull Node<T> node, double left, double t
code/src/main/java/com/codeforces/commons/collection/QuadTree.java:154
↓ 3 callers
Method
checkStoringOneValueWithLifetime
( Cache<String, byte[]> cache, CachePath cachePath, int valueLength, long valueLifet
code/src/test/java/com/codeforces/commons/cache/CacheTestUtil.java:221
↓ 3 callers
Method
cleanDirectory
Cleans directory. All nested elements will be recursively deleted. @param directory Directory to be deleted. @param deleteFileFilter Filter of
code/src/main/java/com/codeforces/commons/io/internal/UnsafeFileUtil.java:287
↓ 3 callers
Method
closeQuietly
( @Nullable CloseableHttpClient httpClient, @Nullable HttpPost request, @Nullable HttpResponse res
code/src/main/java/com/codeforces/commons/io/http/HttpClientUtil.java:651
↓ 3 callers
Method
compareTo
(@Nonnull Pair<F, S> pair)
code/src/main/java/com/codeforces/commons/pair/Pair.java:26
↓ 3 callers
Method
compress
(InputStream plainTextInputStream, OutputStream compressedTextOutputStream)
code/src/main/java/com/codeforces/commons/compress/ZipUtil.java:61
↓ 3 callers
Method
copyAndRemoveFile
(File sourceFile, File destinationFile)
code/src/main/java/com/codeforces/commons/io/internal/UnsafeFileUtil.java:786
↓ 3 callers
Method
copyDirectory
Copy one directory into another. If the second one exists it copies nested files from the source to destination. @param source Source directory.
code/src/main/java/com/codeforces/commons/io/internal/UnsafeFileUtil.java:125
↓ 3 callers
Method
copyFile
Copies one file to another. Overwrites it if exists. @param source Source file. @param destination Destination file. @throws IOException Can't p
code/src/main/java/com/codeforces/commons/io/internal/UnsafeFileUtil.java:71
↓ 3 callers
Method
encodeBase65536
Converts a byte array into a char array using a 65536-based encoding. @param dataBytes array to encode @return encoded char array
code/src/main/java/com/codeforces/commons/codec/Base65536.java:20
↓ 3 callers
Method
ensureCapacity
(@Nonnegative int capacity)
code/src/main/java/com/codeforces/commons/io/ByteArrayOutputStream.java:39
↓ 3 callers
Method
ensureParentDirectoryExists
Ensures that parent directory of specified file or directory does exist and creates it if not. @param file Directory or file to get parent directory
code/src/main/java/com/codeforces/commons/io/FileUtil.java:161
↓ 3 callers
Method
forceGetBytesFromExistingRegularFile
(@Nonnull File file)
code/src/main/java/com/codeforces/commons/io/internal/UnsafeFileUtil.java:482
↓ 3 callers
Method
formatInterval
(@Nonnegative long intervalMillis)
code/src/main/java/com/codeforces/commons/time/TimeUtil.java:160
↓ 3 callers
Method
getBytes
(String resourceName)
code/src/test/java/com/codeforces/commons/codec/Base65536Test.java:48
↓ 3 callers
Method
getCachePaths
()
code/src/test/java/com/codeforces/commons/cache/RedisByteCacheTest.java:196
↓ 3 callers
Method
getCachePaths
()
code/src/test/java/com/codeforces/commons/cache/BaseByteCacheTest.java:205
↓ 3 callers
Method
getDeepUnmodifiableMap
(Map<K, List<V>> map)
code/src/main/java/com/codeforces/commons/io/http/HttpRequest.java:831
↓ 3 callers
Method
getHeaders
(String headerName)
code/src/main/java/com/codeforces/commons/io/http/HttpRequest.java:246
↓ 3 callers
Method
getId
()
code/src/test/java/com/codeforces/commons/reflection/ReflectionUtilTest.java:187
↓ 3 callers
Method
getIndex
()
code/src/main/java/com/codeforces/commons/cache/Cache.java:23
↓ 3 callers
Method
getInputStream
(File file)
code/src/main/java/com/codeforces/commons/io/internal/UnsafeFileUtil.java:537
↓ 3 callers
Method
getListProperty
(String propertyName, String defaultValue)
code/src/main/java/com/codeforces/commons/properties/internal/CommonsPropertiesUtil.java:29
↓ 3 callers
Method
getName
()
code/src/test/java/com/codeforces/commons/reflection/ReflectionUtilTest.java:191
↓ 3 callers
Method
getName
@param file Any file. @return String Name part (simple name without extension).
code/src/main/java/com/codeforces/commons/io/internal/UnsafeFileUtil.java:634
↓ 3 callers
Method
getRandomAlphanumeric
Generates random alphanumeric-string of specific length. @param length non-negative length @return random alphanumeric-string
code/src/main/java/com/codeforces/commons/math/RandomUtil.java:109
↓ 3 callers
Method
getRandomBytesUnchecked
(@Nonnegative int length)
code/src/main/java/com/codeforces/commons/math/RandomUtil.java:147
↓ 3 callers
Method
getResource
(@Nonnull Class clazz, @Nonnull String resourceName)
code/src/main/java/com/codeforces/commons/resource/ResourceUtil.java:31
↓ 3 callers
Method
getSecureHosts
()
code/src/main/java/com/codeforces/commons/properties/internal/CommonsPropertiesUtil.java:46
↓ 3 callers
Method
getType
()
code/src/test/java/com/codeforces/commons/reflection/ReflectionUtilTest.java:195
↓ 3 callers
Method
hmacSha1
(byte[] value, byte[] key)
code/src/main/java/com/codeforces/commons/text/StringUtil.java:1479
↓ 3 callers
Method
internalExtractFromXml
(InputStream xmlInputStream, String xPath, Class<T> clazz)
code/src/main/java/com/codeforces/commons/xml/XmlUtil.java:399
↓ 3 callers
Method
internalGet
(ByteCache cache, String section, String key, boolean optional)
code/src/main/java/com/codeforces/commons/cache/util/LocalAndRemoteByteCache.java:174
↓ 3 callers
Method
internalTestConcurrentStoringOfValuesWithLifetime
( long valueLifetimeMillis, long valueCheckIntervalMillis)
code/src/test/java/com/codeforces/commons/cache/RedisByteCacheTest.java:128
↓ 3 callers
Method
internalTestLooksLikeUtil
(String... strings)
code/src/test/java/com/codeforces/commons/text/StringUtilTest.java:333
↓ 3 callers
Method
name
()
code/src/test/java/com/codeforces/commons/reflection/MethodArgumentsFormatUtilTest.java:85
↓ 3 callers
Method
newDocumentBuilderFactory
()
code/src/main/java/com/codeforces/commons/xml/XmlUtil.java:861
↓ 3 callers
Method
onWrite
(long writtenByteCount, long totalWrittenByteCount)
code/src/main/java/com/codeforces/commons/io/CountingOutputStream.java:106
↓ 3 callers
Method
parseSize
(@Nullable String size)
code/src/main/java/com/codeforces/commons/io/FileUtil.java:1026
↓ 3 callers
Method
put
Puts value into the storage using given section and key. Replaces old value if exists. Value will be considered outdated ({@code {@link #get(String, S
code/src/main/java/com/codeforces/commons/cache/ByteCache.java:51
↓ 3 callers
Method
put
(@Nonnull String section, @Nonnull K key, @Nonnull V value)
code/src/main/java/com/codeforces/commons/cache/InmemoryCache.java:83
↓ 3 callers
Method
put
(K key, V value)
code/src/main/java/com/codeforces/commons/collection/MapBuilder.java:23
↓ 3 callers
Method
readLockCacheAndReturnResult
(Supplier<T> invocation)
code/src/main/java/com/codeforces/commons/cache/InmemoryCache.java:304
↓ 3 callers
Method
removeElementsIfExists
Removes all elements Xml by XPath. @param xmlFile From which will be removed elements. @param elementXPath XPath of elements to remove. @throws
code/src/main/java/com/codeforces/commons/xml/XmlUtil.java:351
↓ 3 callers
Method
setQuietly
(@Nullable Writable<T> writable, @Nullable T value)
code/src/main/java/com/codeforces/commons/holder/Holders.java:85
↓ 3 callers
Method
sha1Hex
(InputStream inputStream)
code/src/main/java/com/codeforces/commons/io/IoUtil.java:40
← previous
next →
201–300 of 1,652, ranked by callers