首页 \ 问答 \ 我在哪里可以得到JOGL JAR?(Where do I get the JOGL JAR?)

我在哪里可以得到JOGL JAR?(Where do I get the JOGL JAR?)

这可能听起来很愚蠢......但我不知道在哪里可以找到JOGL JAR。 我搜查了他们的网站( http://jogamp.org/jogl/www/ )并找不到它。

有人可以帮忙吗?

谢谢

blargman


This might sound silly... but I don't know where to find the JOGL JAR. I searched their website (http://jogamp.org/jogl/www/) and couldn't find it.

Could someone please help?

Thank you

blargman


原文:https://stackoverflow.com/questions/6194824
更新时间:2022-02-09 06:02

最满意答案

取决于“命名构造函数”的含义,但是您可以重载构造函数请参阅Scala的Case Classes的重载构造函数?

你也可以把工厂方法放在你的类的Companion Objects(静态单例)中。


Depends what you mean with "named constructors", but yes you can overload constructors see Overload constructor for Scala's Case Classes?

Also you can put factory methods in a Companion Objects for your class (static singleton).

相关问答

更多
  • cause默认值为空。 对于message它可以是cause.toString()或null: val e1 = new RuntimeException() e.getCause // res1: java.lang.Throwable = null e.getMessage //res2: java.lang.String = null val cause = new RuntimeException("cause msg") val e2 = new RuntimeException(cause ...
  • 如果您尚未使用隐式转换来创建参数,则可以这样做: def validateName(s: String) = { if (s.length>0 && s(0).isUpper) s else throw new IllegalArgumentException(s+" is not a name!") } object Example { private[Example] class ValidatedName(val s: String) { } class Person(var fir ...
  • 值得明确提到的是,Scala中的辅助构造函数必须调用主构造函数(如在landon9720的)答案中,或者调用其他辅助构造函数作为第一个动作。 他们不能像Java那样简单地调用超类的构造函数来显式或隐式地调用它们。 这确保主构造函数是进入课程的唯一点。 class Foo(x: Int, y: Int, z: String) { // default y parameter to 0 def this(x: Int, z: String) = this(x, 0, z) // def ...
  • 很容易忘记一个特征可能会扩展一个类。 如果你使用一个特征,你可以推迟调用哪个构造函数的决定,如下所示: trait Extended extends Base { ... } object Extended { def apply(arg1: Int) = new Base(arg1) with Extended def apply(arg2: String) = new Base(arg2) with Extended def apply(arg3: Double) = new Base ...
  • 取决于“命名构造函数”的含义,但是您可以重载构造函数请参阅Scala的Case Classes的重载构造函数? 你也可以把工厂方法放在你的类的Companion Objects(静态单例)中。 Depends what you mean with "named constructors", but yes you can overload constructors see Overload constructor for Scala's Case Classes? Also you can put fact ...
  • 听起来你想要一个带有默认参数的构造函数: class example(val a : Vector[Int] = Vector()) Sounds like you want a constructor with a default argument: class example(val a : Vector[Int] = Vector())
  • 斯卡拉让你的生活变得轻松: class Transition(val next: Int) val将使构造函数参数成为一个字段。 Scala makes your life easy: class Transition(val next: Int) The val will make the constructor parameter into a field.
  • 默认构造函数确实存在 ,是的,它是整个类的主体。 而不是写作 class SeriousClass2(param: Param) { def this() { this(new Param()) } } 你最好只为默认构造函数提供默认值: class SeriousClass2(param: Param = new Param()) { } 它既惯用又更具可读性。 此外,有时您可能希望禁止从外部进行类实例化。 这可以通过指定构造函数范围进行存档: class Prett ...
  • 我不认为这是可能的,如果不诉诸运行时反射(或可能是宏)。 基本上有三个问题,你已经指出了两个问题: 特征不可能声明强制构造函数签名。 无法调用诸如apply A方法,因为它是类型变量而不是类或对象。 由于值类(当前)只能扩展通用特征 ,而不能扩展抽象类,因此无法使用TypeTags来获取属于在扩展Measurement时实例化A的类型的类。 我能想到的最好的方法是以下方法。 注意,它使用反射,并且如果Measurement的具体实例没有声明适当的构造函数,则可以在运行时抛出异常。 // ... as abo ...
  • 是的, Array(s)表达式在运行时被评估。 class Foo (val x: Int) class Bar (x: Int, y: Int) extends Foo(x + y) Scala允许在对超类的构造函数的调用中使用表达式(类似于Java使用super(...)所做的)。 这些表达式在运行时进行评估。 Yes, the Array(s) expression is evaluated at run-time. class Foo (val x: Int) class Bar (x: Int, ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。