enum Methodologies 

    Evo(5), 
    XP(21), 
    Scrum(30); 
    
    final int daysInIteration 
    Methodologies(days) { daysInIteration = days } 
    def iterationDetails() 
    { 
    println "${this} recommends $daysInIteration days for iteration" 
    } 

for(methodology in Methodologies.values()) 

methodology.iterationDetails() 

 

请注意这里表示Key和Value的方式

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-11
  • 2022-12-23
  • 2022-12-23
  • 2021-05-24
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-04
  • 2022-12-23
  • 2022-12-23
  • 2023-03-18
  • 2021-07-10
相关资源
相似解决方案