本文整理了Java中org.apache.qpid.proton.amqp.Symbol.<init>()
方法的一些代码示例,展示了Symbol.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Symbol.<init>()
方法的具体详情如下:
包路径:org.apache.qpid.proton.amqp.Symbol
类名称:Symbol
方法名:<init>
暂无
代码示例来源:origin: stackoverflow.com
var Person = (function () {
var name_ = new Symbol();
function Person(name) {
this[name_] = name;
}
Person.prototype = Object.create(Object.prototype, {
name: { get: function () { return this[name_]; } }
}
})();
代码示例来源:origin: stackoverflow.com
Symbol s = new Symbol();
canvas.save();
canvas.rotate(5);
canvas.drawBitmap(s.b, 0,0, null);
canvas.restore();
代码示例来源:origin: stackoverflow.com
var x = { };
var a = new Symbol();
x[a] = 5;
console.log(x[a]); // => 5
代码示例来源:origin: stackoverflow.com
var Person = (function() {
var firstName = new Symbol(),
lastName = new Symbol();
function Person(first, last) {
this[firstName] = first;
this[lastName] = last;
}
Person.prototype.getFullName = function() {
return this[firstName] + ' ' + this[lastName];
};
return Person;
})();
var john = new Person('John', 'Smith');
john.getFullName(); // => 'John Smith'
Object.getOwnPropertyNames(john); // => [ ]
代码示例来源:origin: stackoverflow.com
Symbol a = new Symbol();
Symbol b = new Symbol("A");
Symbol c = new Symbol("A");
Symbol d = c;
var dict = new Dictionary<object, int>() { { c, 42 } };
Symbol e = Symbol.For("X");
Symbol f = Symbol.For("X");
Symbol g = Symbol.For("Y");
Console.WriteLine(a == b); // false
Console.WriteLine(b == c); // false
Console.WriteLine(c == d); // true
Console.WriteLine(dict[d]); // 42
Console.WriteLine(e == f); // true
Console.WriteLine(f == g); // false
Console.WriteLine(Symbol.For("X") == e); // true
Console.WriteLine(Symbol.KeyFor(e) == "X"); // true
Console.WriteLine(Symbol.Unscopables.Description); // Symbol.unscopables
代码示例来源:origin: org.apache.qpid/proton-api
public static Symbol getSymbol(String symbolVal)
{
if(symbolVal == null)
{
return null;
}
Symbol symbol = _symbols.get(symbolVal);
if(symbol == null)
{
symbolVal = symbolVal.intern();
symbol = new Symbol(symbolVal);
Symbol existing;
if((existing = _symbols.putIfAbsent(symbolVal, symbol)) != null)
{
symbol = existing;
}
}
return symbol;
}
代码示例来源:origin: com.microsoft.azure.iot/proton-j-azure-iot
public static Symbol getSymbol(String symbolVal)
{
if(symbolVal == null)
{
return null;
}
Symbol symbol = _symbols.get(symbolVal);
if(symbol == null)
{
symbolVal = symbolVal.intern();
symbol = new Symbol(symbolVal);
Symbol existing;
if((existing = _symbols.putIfAbsent(symbolVal, symbol)) != null)
{
symbol = existing;
}
}
return symbol;
}
代码示例来源:origin: org.apache.qpid/proton-j
public static Symbol getSymbol(String symbolVal)
{
if(symbolVal == null)
{
return null;
}
Symbol symbol = _symbols.get(symbolVal);
if(symbol == null)
{
symbolVal = symbolVal.intern();
symbol = new Symbol(symbolVal);
Symbol existing;
if((existing = _symbols.putIfAbsent(symbolVal, symbol)) != null)
{
symbol = existing;
}
}
return symbol;
}
代码示例来源:origin: stackoverflow.com
case '(':
case '[':
symbolStack.push(new Symbol(chr, lineNum, charNum));
break;
代码示例来源:origin: stackoverflow.com
NewOrderSingle newOrder = new NewOrderSingle(new ClOrdID(orderId), new HandlInst('1'), new Symbol("6758.T"),
new Side(Side.BUY), new TransactTime(new Date()), new OrdType(OrdType.MARKET));
Session.sendToTarget(newOrder, sessionID);
内容来源于网络,如有侵权,请联系作者删除!