移动 MapWrapper 所在包。

feature/net-util
ZhouXY108 2023-06-29 01:19:21 +08:00
parent 1cbe89f39b
commit 8091487165
4 changed files with 6 additions and 4 deletions

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package xyz.zhouxy.plusone.commons.util; package xyz.zhouxy.plusone.commons.collection;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
@ -164,7 +164,7 @@ public abstract class AbstractMapWrapper<K, V, T extends AbstractMapWrapper<K, V
return this.map.toString(); return this.map.toString();
} }
protected abstract static class Builder<K, V, T extends AbstractMapWrapper<K, V, T>> { public abstract static class Builder<K, V, T extends AbstractMapWrapper<K, V, T>> {
protected final Map<K, V> map; protected final Map<K, V> map;
protected Consumer<K> keyChecker; protected Consumer<K> keyChecker;
protected Consumer<V> valueChecker; protected Consumer<V> valueChecker;

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package xyz.zhouxy.plusone.commons.util; package xyz.zhouxy.plusone.commons.collection;
import java.util.Collections; import java.util.Collections;
import java.util.Comparator; import java.util.Comparator;

View File

@ -31,7 +31,7 @@ import java.util.Set;
import com.google.common.annotations.Beta; import com.google.common.annotations.Beta;
import xyz.zhouxy.plusone.commons.util.AbstractMapWrapper; import xyz.zhouxy.plusone.commons.collection.AbstractMapWrapper;
import xyz.zhouxy.plusone.commons.util.Assert; import xyz.zhouxy.plusone.commons.util.Assert;
import xyz.zhouxy.plusone.commons.util.OptionalUtil; import xyz.zhouxy.plusone.commons.util.OptionalUtil;

View File

@ -14,6 +14,8 @@ import java.util.TimeZone;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import xyz.zhouxy.plusone.commons.collection.MapWrapper;
public class DateTimeUtil { public class DateTimeUtil {
private static final MapWrapper<String, DateTimeFormatter> DATE_TIME_FORMATTER_CHCHE = MapWrapper private static final MapWrapper<String, DateTimeFormatter> DATE_TIME_FORMATTER_CHCHE = MapWrapper