lazy class 中文意思是什麼

lazy class 解釋
冗餘類
  • lazy : adj. (-zier; -ziest)1. 懶惰的,沒精打採的。2. 慢吞吞的。3. 令人懶散的。adj. -ish 懶散的,懶洋洋的。
  • class : n 1 階級;社會等級。2 學級;班級,年級,級,班;組;(有組織的)講習班;〈美國〉同年畢業班;【軍事...
  1. Instead of double - checked locking, use the initialize - on - demand holder class idiom, which provides lazy initialization, is thread - safe, and is faster and less confusing than double - checked locking

    不使用雙重檢查鎖定,而使用initialize - on - demand holder class idiom ,它提供了遲緩初始化,是線程安全的,而且比雙重檢查鎖定更快且沒那麼混亂:
  2. This idiom derives its thread safety from the fact that operations that are part of class initialization, such as static initializers, are guaranteed to be visible to all threads that use that class, and its lazy initialization from the fact that the inner class is not loaded until some thread references one of its fields or methods

    這個idiom由屬于類初始化的操作(如靜態初始化器)保證對使用這個類的所有線程都是可見的這一事實衍生其線程安全性,內部類直到有線程引用其欄位或者方法時才裝載這一事實衍生出遲緩初始化。
  3. She is very lazy. she likes to sleep. she is always sleeping in class.

    她非常懶。她喜歡睡覺。她老是在課堂上睡覺。
  4. That lazy boy went to class before he had prepared his lesson

    那個懶惰的小孩不預習就去上課。
  5. It was not true business principle to allow credit to a strong - bodied young fellow of the working - class who was too lazy to work

    馬丁無話可說。他沒法解釋。把東西賒給一個身強力壯卻懶得上班的工人階級小夥子不符合正常的生意原則。
  6. Get up, bill, you lazy bone. it ' s already 7 : 30. we ' re going to be late for class

    快起床,比爾。你這個懶骨頭。都已經七點半了。我們上課要遲到了。
分享友人