java.applet.Applet#isValidateRoot                                        java.nio.channels.DatagramChannel#getRemoteAddres...
Objects     Short     Long    Integer  Character      Byte   Boolean  CollectionsAssertionError InetAddress  ThrowableProc...
Objects     Short     Long    Integer  Character      Byte   Boolean  CollectionsAssertionError InetAddress  ThrowableProc...
Objectspublic static boolean equals(Object a, Object b)public static boolean deepEquals(Object a, Object b)public static i...
Objects#equalsObject o1 = new Object();Object o2 = o1;assert Objects.equals(o1, o2); // true//            ==// false    eq...
Objects#deepEqualsint[][] a1 = { {1, 2, 3}, {4, 5, 6} };int[][] a2 = { {1, 2, 3}, {4, 5, 6} };// Arrays.deepEqualsassert O...
Objects#toString//   2//           String.valueOfString s1 = Objects.toString("aaa", "null value");assert s1.equals("aaa")...
Objects#requireNonNullvoid setName(String name) {    //       null   this.name       = Objects.requireNonNull(name, "   ");}
Objects    Short    Long   Integer Character    Byte  Boolean  CollectionsAssertionError InetAddress  ThrowableProcessBuil...
#compare   //           0   x             -1   // x                 1java.lang.Short#compare(short x, short y)java.lang.Lo...
Objects     Short     Long    Integer  Character      Byte   BooleanCollectionsAssertionError InetAddress  ThrowableProces...
Collectionspublic static <T> Iterator<T> emptyIterator()public static <T> ListIterator<T> emptyListIterator()public static...
//       Iterator// Collections.emptyXXX()public Iterator<E> iterator() {    if (data == null) {        return Collections...
Objects      Short      Long     Integer   Character       Byte    Boolean   CollectionsAssertionError  InetAddress   Thro...
AssertionErrorpublic AssertionError(String message,                      Throwable cause)
AssertionError(String, Throwable)try {    Class.forName("              ");} catch (ClassNotFoundException e) {    // try-c...
Objects     Short     Long    Integer  Character      Byte   Boolean  CollectionsAssertionErrorInetAddress  ThrowableProce...
InetAddresspublic static InetAddress getLoopbackAddress()
InetAddress#getLoopbackAddressInetAddress a = InetAddress.getLoopbackAddress();assert a.getHostAddress().equals("127.0.0.1...
Objects     Short     Long    Integer  Character      Byte   Boolean  CollectionsAssertionError InetAddress ThrowableProce...
Throwablepublic final synchronized              void addSuppressed(Throwable exception)public final synchronized          ...
Throwable#addSuppressedThrowable#getSuppressed// try-with-resources//try {    view.setTimes(attrs.lastModifiedTime(),     ...
Objects      Short      Long     Integer   Character       Byte    Boolean   Collections AssertionError  InetAddress   Thr...
ProcessBuilderpublic   ProcessBuilder                      redirectInput(Redirect source)public   ProcessBuilder          ...
//// md5 input.txt > output.txtProcessBuilder builder = new ProcessBuilder("md5");builder.redirectInput(Redirect.from(new ...
Objects     Short     Long    Integer  Character      Byte   Boolean  CollectionsAssertionError InetAddress  ThrowableProc...
Calendar                 (GregorianCalendar)public   boolean isWeekDateSupported()public   int getWeeksInWeekYear()public ...
Calendar calendar = Calendar.getInstance();// ISO8601calendar.setFirstDayOfWeek(MONDAY);calendar.setMinimalDaysInFirstWeek...
Calendar calendar = Calendar.getInstance();// ISO8601calendar.setFirstDayOfWeek(MONDAY);calendar.setMinimalDaysInFirstWeek...
Calendar calendar = Calendar.getInstance();//ISO8601calendar.setFirstDayOfWeek(MONDAY);calendar.setMinimalDaysInFirstWeek(...
Project Coinより小さなCoin
Project Coinより小さなCoin
Project Coinより小さなCoin
Project Coinより小さなCoin
Project Coinより小さなCoin
Project Coinより小さなCoin
Project Coinより小さなCoin
Project Coinより小さなCoin
Project Coinより小さなCoin
Upcoming SlideShare
Loading in …5
×

Project Coinより小さなCoin

3,736 views

Published on

Published in: Technology, Education
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
3,736
On SlideShare
0
From Embeds
0
Number of Embeds
479
Actions
Shares
0
Downloads
20
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Project Coinより小さなCoin

  1. 1. java.applet.Applet#isValidateRoot java.nio.channels.DatagramChannel#getRemoteAddress java.util.GregorianCalendar#setWeekDate javax.swing.plaf.synth.SynthProgressBarUI [class]java.awt.Window#setAutoRequestFocus java.nio.channels.CompletionHandler [class] java.util.GregorianCalendar#getWeeksInWeekYear javax.swing.plaf.synth.SynthPopupMenuUI [class]java.awt.Window#isAutoRequestFocus java.nio.channels.Channels#newInputStream java.util.Currency#getAvailableCurrencies javax.swing.plaf.synth.SynthPasswordFieldUI [class]java.awt.Window#isValidateRoot java.nio.channels.Channels#newOutputStream java.util.Currency#getNumericCode javax.swing.plaf.synth.SynthPanelUI [class]java.awt.Window#setType java.nio.channels.AsynchronousSocketChannel [class] java.util.Currency#getDisplayName javax.swing.plaf.synth.SynthOptionPaneUI [class]java.awt.Window#getType java.nio.channels.AsynchronousServerSocketChannel [class] java.util.Currency#getDisplayName javax.swing.plaf.synth.SynthMenuUI [class]java.awt.Window#getOpacity java.nio.channels.AsynchronousFileChannel [class] java.util.Collections#emptyIterator javax.swing.plaf.synth.SynthMenuItemUI [class]java.awt.Window#setOpacity java.nio.channels.AsynchronousChannelGroup [class] java.util.Collections#emptyListIterator javax.swing.plaf.synth.SynthMenuBarUI [class]java.awt.Window#getShape java.nio.channels.AsynchronousChannel [class] java.util.Collections#emptyEnumeration javax.swing.plaf.synth.SynthLookAndFeel#shouldUpdateStyleOnEventjava.awt.Window#setShape java.nio.channels.AsynchronousByteChannel [class] java.util.Calendar#isWeekDateSupported javax.swing.plaf.synth.SynthListUI [class]java.awt.Window#isOpaque java.nio.channels.AlreadyBoundException [class] java.util.Calendar#getWeekYear javax.swing.plaf.synth.SynthLabelUI [class]java.awt.Window#paint java.nio.channels.AcceptPendingException [class] java.util.Calendar#setWeekDate javax.swing.plaf.synth.SynthInternalFrameUI [class]java.awt.Window.Type [class] java.nio.channels.spi.SelectorProvider#openDatagramChannel java.util.Calendar#getWeeksInWeekYear javax.swing.plaf.synth.SynthFormattedTextFieldUI [class]java.awt.Toolkit#areExtraMouseButtonsEnabled java.nio.channels.spi.AsynchronousChannelProvider [class] java.util.BitSet#valueOf javax.swing.plaf.synth.SynthEditorPaneUI [class]java.awt.SecondaryLoop [class] java.nio.charset.StandardCharsets [class] java.util.BitSet#valueOf javax.swing.plaf.synth.SynthDesktopPaneUI [class]java.awt.GraphicsDevice#isWindowTranslucencySupported java.nio.file.Watchable [class] java.util.BitSet#valueOf javax.swing.plaf.synth.SynthDesktopIconUI [class]java.awt.GraphicsDevice.WindowTranslucency [class] java.nio.file.WatchService [class] java.util.BitSet#valueOf javax.swing.plaf.synth.SynthComboBoxUI [class]java.awt.GraphicsConfiguration#isTranslucencyCapable java.nio.file.WatchKey [class] java.util.BitSet#toByteArray javax.swing.plaf.synth.SynthColorChooserUI [class]java.awt.FileDialog#getFiles java.nio.file.WatchEvent [class] java.util.BitSet#toLongArray javax.swing.plaf.synth.SynthCheckBoxUI [class]java.awt.FileDialog#setMultipleMode java.nio.file.WatchEvent.Kind [class] java.util.BitSet#previousSetBit javax.swing.plaf.synth.SynthCheckBoxMenuItemUI [class]java.awt.FileDialog#isMultipleMode java.nio.file.WatchEvent.Modifier [class] java.util.BitSet#previousClearBit javax.swing.plaf.synth.SynthButtonUI [class]java.awt.EventQueue#createSecondaryLoop java.nio.file.StandardWatchEventKinds [class] java.util.concurrent.TransferQueue [class] javax.swing.text.JTextComponent#saveComposedTextjava.awt.Container#isValidateRoot java.nio.file.StandardOpenOption [class] java.util.concurrent.ThreadLocalRandom [class] javax.swing.text.JTextComponent#restoreComposedTextjava.awt.Component#revalidate java.nio.file.StandardCopyOption [class] java.util.concurrent.ScheduledThreadPoolExecutor#setRemoveOnCancelPolicy javax.swing.text.DefaultStyledDocument#removeElementjava.awt.event.MouseWheelEvent#getPreciseWheelRotation java.nio.file.SimpleFileVisitor [class] java.util.concurrent.ScheduledThreadPoolExecutor#getRemoveOnCancelPolicy javax.swing.tree.DefaultTreeCellRenderer#updateUIjava.awt.event.KeyEvent#getExtendedKeyCode java.nio.file.SecureDirectoryStream [class] java.util.concurrent.RecursiveTask [class]java.awt.event.KeyEvent#getExtendedKeyCodeForChar java.nio.file.Paths [class] java.util.concurrent.RecursiveAction [class]java.awt.event.InvocationEvent#isDispatched java.nio.file.PathMatcher [class] java.util.concurrent.Phaser [class]java.awt.font.NumericShaper#getShaper java.nio.file.Path [class] java.util.concurrent.LinkedTransferQueue [class]java.awt.font.NumericShaper#getContextualShaper java.nio.file.OpenOption [class] java.util.concurrent.ForkJoinWorkerThread [class]java.awt.font.NumericShaper#getContextualShaper java.nio.file.NotLinkException [class] java.util.concurrent.ForkJoinTask [class]java.awt.font.NumericShaper#shape java.nio.file.NotDirectoryException [class] java.util.concurrent.ForkJoinPool [class]java.awt.font.NumericShaper#getRangeSet java.nio.file.NoSuchFileException [class] java.util.concurrent.ConcurrentLinkedDeque [class]java.awt.font.NumericShaper.Range [class] java.nio.file.LinkPermission [class] java.util.concurrent.locks.AbstractQueuedSynchronizer#hasQueuedPredecessorsjava.awt.peer.ComponentPeer#applyShape java.nio.file.LinkOption [class] java.util.concurrent.locks.AbstractQueuedLongSynchronizer#hasQueuedPredecessorsjava.awt.peer.ComponentPeer#updateGraphicsData java.nio.file.Files [class] java.util.logging.Logger#getGlobaljava.awt.peer.CanvasPeer#getAppropriateGraphicsConfiguration java.nio.file.FileVisitor [class] java.util.spi.LocaleNameProvider#getDisplayScriptjava.beans.XMLDecoder#createHandler java.nio.file.FileVisitResult [class] java.util.spi.CurrencyNameProvider#getDisplayNamejava.beans.Transient [class] java.nio.file.FileVisitOption [class] java.util.zip.DeflaterOutputStream#flushjava.beans.PropertyChangeEvent#toString java.nio.file.FileSystems [class] java.util.zip.Deflater#deflatejava.beans.Introspector#getBeanInfo java.nio.file.FileSystemLoopException [class] javax.lang.model.UnknownEntityException [class]java.beans.FeatureDescriptor#toString java.nio.file.FileSystemException [class] javax.lang.model.element.QualifiedNameable [class]java.beans.Expression#execute java.nio.file.FileSystem [class] javax.lang.model.element.Parameterizable [class]java.io.File#toPath java.nio.file.FileStore [class] javax.lang.model.type.UnionType [class]java.lang.Throwable#addSuppressed java.nio.file.FileAlreadyExistsException [class] javax.lang.model.type.TypeVisitor#visitUnionjava.lang.Throwable#getSuppressed java.nio.file.DirectoryStream [class] javax.lang.model.util.TypeKindVisitor7 [class]java.lang.Short#compare java.nio.file.DirectoryStream.Filter [class] javax.lang.model.util.SimpleTypeVisitor7 [class]java.lang.ReflectiveOperationException [class] java.nio.file.DirectoryNotEmptyException [class] javax.lang.model.util.SimpleElementVisitor7 [class]java.lang.ProcessBuilder#redirectInput java.nio.file.DirectoryIteratorException [class] javax.lang.model.util.SimpleAnnotationValueVisitor7 [class]java.lang.ProcessBuilder#redirectOutput java.nio.file.CopyOption [class] javax.lang.model.util.ElementScanner7 [class]java.lang.ProcessBuilder#redirectError java.nio.file.ClosedDirectoryStreamException [class] javax.lang.model.util.ElementKindVisitor7 [class]java.lang.ProcessBuilder#redirectInput java.nio.file.AtomicMoveNotSupportedException [class] javax.lang.model.util.ElementKindVisitor6#visitVariableAsResourceVariablejava.lang.ProcessBuilder#redirectOutput java.nio.file.AccessMode [class] javax.lang.model.util.AbstractTypeVisitor7 [class]java.lang.ProcessBuilder#redirectError java.nio.file.AccessDeniedException [class] javax.lang.model.util.AbstractTypeVisitor6#visitUnionjava.lang.ProcessBuilder#redirectInput java.nio.file.attribute.UserPrincipalNotFoundException [class] javax.lang.model.util.AbstractElementVisitor7 [class]java.lang.ProcessBuilder#redirectOutput java.nio.file.attribute.UserPrincipalLookupService [class] javax.lang.model.util.AbstractAnnotationValueVisitor7 [class]java.lang.ProcessBuilder#redirectError java.nio.file.attribute.UserPrincipal [class] javax.print.attribute.standard.DialogTypeSelection [class]java.lang.ProcessBuilder#inheritIO java.nio.file.attribute.UserDefinedFileAttributeView [class] javax.security.auth.kerberos.KeyTab [class]java.lang.ProcessBuilder.Redirect [class] java.nio.file.attribute.PosixFilePermissions [class] javax.sound.midi.MidiDeviceTransmitter [class]java.lang.Long#compare java.nio.file.attribute.PosixFilePermission [class] javax.sound.midi.MidiDeviceReceiver [class]java.lang.Integer#compare java.nio.file.attribute.PosixFileAttributes [class] javax.sql.CommonDataSource#getParentLoggerjava.lang.ClassValue [class] java.nio.file.attribute.PosixFileAttributeView [class] javax.sql.rowset.RowSetProvider [class]java.lang.ClassLoader#getClassLoadingLock java.nio.file.attribute.GroupPrincipal [class] javax.sql.rowset.RowSetProvider#newFactoryjava.lang.ClassLoader#registerAsParallelCapable java.nio.file.attribute.FileTime [class] javax.sql.rowset.RowSetProvider#newFactoryjava.lang.Character#isBmpCodePoint java.nio.file.attribute.FileStoreAttributeView [class] javax.sql.rowset.RowSetFactory [class]java.lang.Character#isSurrogate java.nio.file.attribute.FileOwnerAttributeView [class] javax.sql.rowset.RowSetFactory#createCachedRowSetjava.lang.Character#highSurrogate java.nio.file.attribute.FileAttributeView [class] javax.sql.rowset.RowSetFactory#createFilteredRowSetjava.lang.Character#lowSurrogate java.nio.file.attribute.FileAttribute [class] javax.sql.rowset.RowSetFactory#createJdbcRowSetjava.lang.Character#isAlphabetic java.nio.file.attribute.DosFileAttributes [class] javax.sql.rowset.RowSetFactory#createJoinRowSetjava.lang.Character#isIdeographic java.nio.file.attribute.DosFileAttributeView [class] javax.sql.rowset.RowSetFactory#createWebRowSetjava.lang.Character#compare java.nio.file.attribute.BasicFileAttributes [class] javax.swing.SwingUtilities#getUnwrappedParentjava.lang.Character#getName java.nio.file.attribute.BasicFileAttributeView [class] javax.swing.SwingUtilities#getUnwrappedViewjava.lang.Character.UnicodeScript [class] java.nio.file.attribute.AttributeView [class] javax.swing.JTree.EmptySelectionModel#setSelectionModejava.lang.Byte#compare java.nio.file.attribute.AclFileAttributeView [class] javax.swing.JTree.EmptySelectionModel#setRowMapperjava.lang.BootstrapMethodError [class] java.nio.file.attribute.AclEntryType [class] javax.swing.JTree.EmptySelectionModel#addTreeSelectionListenerjava.lang.Boolean#compare java.nio.file.attribute.AclEntryPermission [class] javax.swing.JTree.EmptySelectionModel#removeTreeSelectionListenerjava.lang.AutoCloseable [class] java.nio.file.attribute.AclEntryFlag [class] javax.swing.JTree.EmptySelectionModel#addPropertyChangeListenerjava.lang.invoke.WrongMethodTypeException [class] java.nio.file.attribute.AclEntry [class] javax.swing.JTree.EmptySelectionModel#removePropertyChangeListenerjava.lang.management.PlatformManagedObject [class] java.nio.file.attribute.AclEntry.Builder [class] javax.swing.JSlider#imageUpdatejava.lang.management.PlatformLoggingMXBean [class] java.nio.file.spi.FileTypeDetector [class] javax.swing.JList#getSelectedValuesListjava.lang.management.ManagementFactory#getPlatformMXBean java.nio.file.spi.FileSystemProvider [class] javax.swing.JLayer [class]java.lang.management.ManagementFactory#getPlatformMXBeans java.security.CryptoPrimitive [class] javax.swing.BorderFactory#createLineBorderjava.lang.management.ManagementFactory#getPlatformMXBean java.security.AlgorithmConstraints [class] javax.swing.BorderFactory#createRaisedSoftBevelBorderjava.lang.management.ManagementFactory#getPlatformMXBeans java.security.cert.X509CRLEntry#getRevocationReason javax.swing.BorderFactory#createLoweredSoftBevelBorderjava.lang.management.ManagementFactory#getPlatformManagementInterfaces java.security.cert.PKIXReason [class] javax.swing.BorderFactory#createSoftBevelBorderjava.lang.management.BufferPoolMXBean [class] java.security.cert.Extension [class] javax.swing.BorderFactory#createSoftBevelBorderjava.lang.reflect.Modifier#classModifiers java.security.cert.CertificateRevokedException [class] javax.swing.BorderFactory#createSoftBevelBorderjava.lang.reflect.Modifier#interfaceModifiers java.security.cert.CertPathValidatorException#getReason javax.swing.BorderFactory#createStrokeBorderjava.lang.reflect.Modifier#constructorModifiers java.security.cert.CertPathValidatorException.Reason [class] javax.swing.BorderFactory#createStrokeBorderjava.lang.reflect.Modifier#methodModifiers java.security.cert.CertPathValidatorException.BasicReason [class] javax.swing.BorderFactory#createDashedBorderjava.lang.reflect.Modifier#fieldModifiers java.security.cert.CRLReason [class] javax.swing.BorderFactory#createDashedBorderjava.net.URLClassLoader#getResourceAsStream java.sql.Statement#closeOnCompletion javax.swing.BorderFactory#createDashedBorderjava.net.URLClassLoader#close java.sql.Statement#isCloseOnCompletion javax.swing.border.StrokeBorder [class]java.net.StandardSocketOptions [class] java.sql.ResultSet#getObject javax.swing.event.HyperlinkEvent#getInputEventjava.net.StandardProtocolFamily [class] java.sql.ResultSet#getObject javax.swing.plaf.LayerUI [class]java.net.SocketOption [class] java.sql.PseudoColumnUsage [class] javax.swing.plaf.FileChooserUI#getDefaultButtonjava.net.ProtocolFamily [class] java.sql.Driver#getParentLogger javax.swing.plaf.basic.BasicTreeUI#isDropLinejava.net.NetworkInterface#getIndex java.sql.DatabaseMetaData#getPseudoColumns javax.swing.plaf.basic.BasicTreeUI#paintDropLinejava.net.NetworkInterface#getByIndex java.sql.DatabaseMetaData#generatedKeyAlwaysReturned javax.swing.plaf.basic.BasicTreeUI#getDropLineRectjava.net.InetSocketAddress#getHostString java.sql.Connection#setSchema javax.swing.plaf.basic.BasicTreeUI#updateLeadSelectionRowjava.net.InetAddress#getLoopbackAddress java.sql.Connection#getSchema javax.swing.plaf.basic.BasicTreeUI#getLeadSelectionRowjava.net.HttpURLConnection#setFixedLengthStreamingMode java.sql.Connection#abort javax.swing.plaf.basic.BasicFileChooserUI#createUIjava.nio.channels.WritePendingException [class] java.sql.Connection#setNetworkTimeout javax.swing.plaf.basic.BasicComboBoxUI#getSizeForComponentjava.nio.channels.SocketChannel#bind java.sql.Connection#getNetworkTimeout javax.swing.plaf.basic.BasicColorChooserUI#uninstallPreviewPaneljava.nio.channels.SocketChannel#setOption java.sql.CallableStatement#getObject javax.swing.plaf.nimbus.NimbusLookAndFeel#shouldUpdateStyleOnEventjava.nio.channels.SocketChannel#shutdownInput java.sql.CallableStatement#getObject javax.swing.plaf.synth.SynthViewportUI [class]java.nio.channels.SocketChannel#shutdownOutput java.util.TimeZone#observesDaylightTime javax.swing.plaf.synth.SynthUI [class]java.nio.channels.SocketChannel#getRemoteAddress java.util.SimpleTimeZone#observesDaylightTime javax.swing.plaf.synth.SynthTreeUI [class]java.nio.channels.ShutdownChannelGroupException [class] java.util.Objects [class] javax.swing.plaf.synth.SynthToolTipUI [class]java.nio.channels.ServerSocketChannel#bind java.util.Locale#getDefault javax.swing.plaf.synth.SynthToolBarUI [class]java.nio.channels.ServerSocketChannel#bind java.util.Locale#setDefault javax.swing.plaf.synth.SynthToggleButtonUI [class]java.nio.channels.ServerSocketChannel#setOption java.util.Locale#getScript javax.swing.plaf.synth.SynthTextPaneUI [class]java.nio.channels.SeekableByteChannel [class] java.util.Locale#getExtension javax.swing.plaf.synth.SynthTextFieldUI [class]java.nio.channels.ReadPendingException [class] java.util.Locale#getExtensionKeys javax.swing.plaf.synth.SynthTextAreaUI [class]java.nio.channels.NetworkChannel [class] java.util.Locale#getUnicodeLocaleAttributes javax.swing.plaf.synth.SynthTableUI [class]java.nio.channels.MulticastChannel [class] java.util.Locale#getUnicodeLocaleType javax.swing.plaf.synth.SynthTableHeaderUI [class]java.nio.channels.MembershipKey [class] java.util.Locale#getUnicodeLocaleKeys javax.swing.plaf.synth.SynthTabbedPaneUI [class]java.nio.channels.InterruptedByTimeoutException [class] java.util.Locale#toLanguageTag javax.swing.plaf.synth.SynthSplitPaneUI [class]java.nio.channels.IllegalChannelGroupException [class] java.util.Locale#forLanguageTag javax.swing.plaf.synth.SynthSpinnerUI [class]java.nio.channels.FileLock#acquiredBy java.util.Locale#getDisplayScript javax.swing.plaf.synth.SynthSliderUI [class]java.nio.channels.FileLock#close java.util.Locale#getDisplayScript javax.swing.plaf.synth.SynthSeparatorUI [class]java.nio.channels.FileChannel#open java.util.Locale.Category [class] javax.swing.plaf.synth.SynthScrollPaneUI [class]java.nio.channels.FileChannel#open java.util.Locale.Builder [class] javax.swing.plaf.synth.SynthScrollBarUI [class]java.nio.channels.DatagramChannel#open java.util.IllformedLocaleException [class] javax.swing.plaf.synth.SynthRootPaneUI [class]java.nio.channels.DatagramChannel#bind java.util.GregorianCalendar#isWeekDateSupported javax.swing.plaf.synth.SynthRadioButtonUI [class]java.nio.channels.DatagramChannel#setOption java.util.GregorianCalendar#getWeekYear javax.swing.plaf.synth.SynthRadioButtonMenuItemUI [class]
  2. 2. Objects Short Long Integer Character Byte Boolean CollectionsAssertionError InetAddress ThrowableProcessBuilder Calendar
  3. 3. Objects Short Long Integer Character Byte Boolean CollectionsAssertionError InetAddress ThrowableProcessBuilder Calendar
  4. 4. Objectspublic static boolean equals(Object a, Object b)public static boolean deepEquals(Object a, Object b)public static int hashCode(Object o)public static int hash(Object... values)public static String toString(Object o)public static String toString(Object o, String nullDefault)public static <T> int compare(T a, T b, Comparator<? super T> c)public static <T> T requireNonNull(T obj)public static <T> T requireNonNull(T obj, String message)
  5. 5. Objects#equalsObject o1 = new Object();Object o2 = o1;assert Objects.equals(o1, o2); // true// ==// false equals// return (a == b) || (a != null && a.equals(b))assert Objects.equals("aaa", "aaa"); // true
  6. 6. Objects#deepEqualsint[][] a1 = { {1, 2, 3}, {4, 5, 6} };int[][] a2 = { {1, 2, 3}, {4, 5, 6} };// Arrays.deepEqualsassert Objects.deepEquals(a1, a2); // true
  7. 7. Objects#toString// 2// String.valueOfString s1 = Objects.toString("aaa", "null value");assert s1.equals("aaa"); // trueString s2 = Objects.toString(null, "null value");assert s2.equals("null value"); // true
  8. 8. Objects#requireNonNullvoid setName(String name) { // null this.name = Objects.requireNonNull(name, " ");}
  9. 9. Objects Short Long Integer Character Byte Boolean CollectionsAssertionError InetAddress ThrowableProcessBuilder Calendar
  10. 10. #compare // 0 x -1 // x 1java.lang.Short#compare(short x, short y)java.lang.Long#compare(long x, long y)java.lang.Integer#compare(int x, int y)java.lang.Character#compare(char x, char y)java.lang.Byte#compare(byte x, byte y)java.lang.Boolean#compare(boolean x, boolean y)
  11. 11. Objects Short Long Integer Character Byte BooleanCollectionsAssertionError InetAddress ThrowableProcessBuilder Calendar
  12. 12. Collectionspublic static <T> Iterator<T> emptyIterator()public static <T> ListIterator<T> emptyListIterator()public static <T> Enumeration<T> emptyEnumeration()
  13. 13. // Iterator// Collections.emptyXXX()public Iterator<E> iterator() { if (data == null) { return Collections.emptyIterator(); } // ...}
  14. 14. Objects Short Long Integer Character Byte Boolean CollectionsAssertionError InetAddress Throwable ProcessBuilder Calendar
  15. 15. AssertionErrorpublic AssertionError(String message, Throwable cause)
  16. 16. AssertionError(String, Throwable)try { Class.forName(" ");} catch (ClassNotFoundException e) { // try-catch // // throw new AssertionError(" (^o^) ", e);}
  17. 17. Objects Short Long Integer Character Byte Boolean CollectionsAssertionErrorInetAddress ThrowableProcessBuilder Calendar
  18. 18. InetAddresspublic static InetAddress getLoopbackAddress()
  19. 19. InetAddress#getLoopbackAddressInetAddress a = InetAddress.getLoopbackAddress();assert a.getHostAddress().equals("127.0.0.1");assert a.getHostName().equals("localhost");assert a.isLoopbackAddress();
  20. 20. Objects Short Long Integer Character Byte Boolean CollectionsAssertionError InetAddress ThrowableProcessBuilder Calendar
  21. 21. Throwablepublic final synchronized void addSuppressed(Throwable exception)public final synchronized Throwable[] getSuppressed()
  22. 22. Throwable#addSuppressedThrowable#getSuppressed// try-with-resources//try { view.setTimes(attrs.lastModifiedTime(), attrs.lastAccessTime(), attrs.creationTime());} catch (Throwable x) { // rollback try { Files.delete(target); } catch (Throwable suppressed) { x.addSuppressed(suppressed); } throw x;}
  23. 23. Objects Short Long Integer Character Byte Boolean Collections AssertionError InetAddress ThrowableProcessBuilder Calendar
  24. 24. ProcessBuilderpublic ProcessBuilder redirectInput(Redirect source)public ProcessBuilder redirectOutput(Redirect destination)public ProcessBuilder redirectError(Redirect destination)public ProcessBuilder redirectInput(File file)public ProcessBuilder redirectOutput(File file)public ProcessBuilder redirectError(File file)public ProcessBuilder redirectErrorStream (boolean redirectErrorStream)public ProcessBuilder inheritIO()public static abstract class Redirect
  25. 25. //// md5 input.txt > output.txtProcessBuilder builder = new ProcessBuilder("md5");builder.redirectInput(Redirect.from(new File("input.txt")));builder.redirectOutput(Redirect.to(new File("output.txt")));Process process = builder.start();// ...
  26. 26. Objects Short Long Integer Character Byte Boolean CollectionsAssertionError InetAddress ThrowableProcessBuilder Calendar
  27. 27. Calendar (GregorianCalendar)public boolean isWeekDateSupported()public int getWeeksInWeekYear()public int getWeekYear()public void setWeekDate(int weekYear, int weekOfYear, int dayOfWeek)
  28. 28. Calendar calendar = Calendar.getInstance();// ISO8601calendar.setFirstDayOfWeek(MONDAY);calendar.setMinimalDaysInFirstWeek(4);// 2011 1calendar.setWeekDate(2011, 1, MONDAY);assert calendar.get(YEAR) == 2011; // 2011assert calendar.get(MONTH) == 0; // 1assert calendar.get(DAY_OF_MONTH) == 3; // 3
  29. 29. Calendar calendar = Calendar.getInstance();// ISO8601calendar.setFirstDayOfWeek(MONDAY);calendar.setMinimalDaysInFirstWeek(4);calendar.set(2011, 0, 2); // 2011 1 2assert calendar.getWeekYear() == 2010;calendar.set(2011, 0, 3); // 2011 1 3assert calendar.getWeekYear() == 2011;
  30. 30. Calendar calendar = Calendar.getInstance();//ISO8601calendar.setFirstDayOfWeek(MONDAY);calendar.setMinimalDaysInFirstWeek(4);calendar.set(YEAR, 2011);assert calendar.getWeeksInWeekYear() == 52;calendar.set(YEAR, 2010);assert calendar.getWeeksInWeekYear() == 52;calendar.set(YEAR, 2009);assert calendar.getWeeksInWeekYear() == 53;

×