code
stringlengths 11
173k
| docstring
stringlengths 2
593k
| func_name
stringlengths 2
189
| language
stringclasses 1
value | repo
stringclasses 844
values | path
stringlengths 11
294
| url
stringlengths 60
339
| license
stringclasses 4
values |
---|---|---|---|---|---|---|---|
private static Boolean isData(char octEct) {
return (octEct < BASE_LENGTH && base64Alphabet[octEct] != -1);
} |
是否数据
@param octEct 位
@return Boolean
| Base64Util::isData | java | PlayEdu/PlayEdu | playedu-api/playedu-common/src/main/java/xyz/playedu/common/util/Base64Util.java | https://github.com/PlayEdu/PlayEdu/blob/master/playedu-api/playedu-common/src/main/java/xyz/playedu/common/util/Base64Util.java | Apache-2.0 |
private static int removeWhiteSpace(char[] data) {
if (data == null) {
return 0;
}
int newSize = 0;
int len = data.length;
for (int i = 0; i < len; i++) {
if (!isWhiteSpace(data[i])) {
data[newSize++] = data[i];
}
}
return newSize;
} |
移除空白
@param data 数据
@return int
| Base64Util::removeWhiteSpace | java | PlayEdu/PlayEdu | playedu-api/playedu-common/src/main/java/xyz/playedu/common/util/Base64Util.java | https://github.com/PlayEdu/PlayEdu/blob/master/playedu-api/playedu-common/src/main/java/xyz/playedu/common/util/Base64Util.java | Apache-2.0 |
public Integer getId() {
return id;
} |
@TableName ldap_user
@TableName(value = "ldap_user")
public class LdapUser implements Serializable {
/**
@TableId(type = IdType.AUTO)
private Integer id;
/** 唯一特征值
private String uuid;
/** 用户ID
private Integer userId;
/** cn
private String cn;
/** dn
private String dn;
/** ou
private String ou;
/** uid
private String uid;
/** 邮箱
private String email;
/**
private Date createdAt;
/**
private Date updatedAt;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
/** | LdapUser::getId | java | PlayEdu/PlayEdu | playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | https://github.com/PlayEdu/PlayEdu/blob/master/playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | Apache-2.0 |
public void setId(Integer id) {
this.id = id;
} |
@TableName ldap_user
@TableName(value = "ldap_user")
public class LdapUser implements Serializable {
/**
@TableId(type = IdType.AUTO)
private Integer id;
/** 唯一特征值
private String uuid;
/** 用户ID
private Integer userId;
/** cn
private String cn;
/** dn
private String dn;
/** ou
private String ou;
/** uid
private String uid;
/** 邮箱
private String email;
/**
private Date createdAt;
/**
private Date updatedAt;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
/**
public Integer getId() {
return id;
}
/** | LdapUser::setId | java | PlayEdu/PlayEdu | playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | https://github.com/PlayEdu/PlayEdu/blob/master/playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | Apache-2.0 |
public String getUuid() {
return uuid;
} |
@TableName ldap_user
@TableName(value = "ldap_user")
public class LdapUser implements Serializable {
/**
@TableId(type = IdType.AUTO)
private Integer id;
/** 唯一特征值
private String uuid;
/** 用户ID
private Integer userId;
/** cn
private String cn;
/** dn
private String dn;
/** ou
private String ou;
/** uid
private String uid;
/** 邮箱
private String email;
/**
private Date createdAt;
/**
private Date updatedAt;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
/**
public Integer getId() {
return id;
}
/**
public void setId(Integer id) {
this.id = id;
}
/** 唯一特征值 | LdapUser::getUuid | java | PlayEdu/PlayEdu | playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | https://github.com/PlayEdu/PlayEdu/blob/master/playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | Apache-2.0 |
public void setUuid(String uuid) {
this.uuid = uuid;
} |
@TableName ldap_user
@TableName(value = "ldap_user")
public class LdapUser implements Serializable {
/**
@TableId(type = IdType.AUTO)
private Integer id;
/** 唯一特征值
private String uuid;
/** 用户ID
private Integer userId;
/** cn
private String cn;
/** dn
private String dn;
/** ou
private String ou;
/** uid
private String uid;
/** 邮箱
private String email;
/**
private Date createdAt;
/**
private Date updatedAt;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
/**
public Integer getId() {
return id;
}
/**
public void setId(Integer id) {
this.id = id;
}
/** 唯一特征值
public String getUuid() {
return uuid;
}
/** 唯一特征值 | LdapUser::setUuid | java | PlayEdu/PlayEdu | playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | https://github.com/PlayEdu/PlayEdu/blob/master/playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | Apache-2.0 |
public Integer getUserId() {
return userId;
} |
@TableName ldap_user
@TableName(value = "ldap_user")
public class LdapUser implements Serializable {
/**
@TableId(type = IdType.AUTO)
private Integer id;
/** 唯一特征值
private String uuid;
/** 用户ID
private Integer userId;
/** cn
private String cn;
/** dn
private String dn;
/** ou
private String ou;
/** uid
private String uid;
/** 邮箱
private String email;
/**
private Date createdAt;
/**
private Date updatedAt;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
/**
public Integer getId() {
return id;
}
/**
public void setId(Integer id) {
this.id = id;
}
/** 唯一特征值
public String getUuid() {
return uuid;
}
/** 唯一特征值
public void setUuid(String uuid) {
this.uuid = uuid;
}
/** 用户ID | LdapUser::getUserId | java | PlayEdu/PlayEdu | playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | https://github.com/PlayEdu/PlayEdu/blob/master/playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | Apache-2.0 |
public void setUserId(Integer userId) {
this.userId = userId;
} |
@TableName ldap_user
@TableName(value = "ldap_user")
public class LdapUser implements Serializable {
/**
@TableId(type = IdType.AUTO)
private Integer id;
/** 唯一特征值
private String uuid;
/** 用户ID
private Integer userId;
/** cn
private String cn;
/** dn
private String dn;
/** ou
private String ou;
/** uid
private String uid;
/** 邮箱
private String email;
/**
private Date createdAt;
/**
private Date updatedAt;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
/**
public Integer getId() {
return id;
}
/**
public void setId(Integer id) {
this.id = id;
}
/** 唯一特征值
public String getUuid() {
return uuid;
}
/** 唯一特征值
public void setUuid(String uuid) {
this.uuid = uuid;
}
/** 用户ID
public Integer getUserId() {
return userId;
}
/** 用户ID | LdapUser::setUserId | java | PlayEdu/PlayEdu | playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | https://github.com/PlayEdu/PlayEdu/blob/master/playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | Apache-2.0 |
public String getCn() {
return cn;
} |
@TableName ldap_user
@TableName(value = "ldap_user")
public class LdapUser implements Serializable {
/**
@TableId(type = IdType.AUTO)
private Integer id;
/** 唯一特征值
private String uuid;
/** 用户ID
private Integer userId;
/** cn
private String cn;
/** dn
private String dn;
/** ou
private String ou;
/** uid
private String uid;
/** 邮箱
private String email;
/**
private Date createdAt;
/**
private Date updatedAt;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
/**
public Integer getId() {
return id;
}
/**
public void setId(Integer id) {
this.id = id;
}
/** 唯一特征值
public String getUuid() {
return uuid;
}
/** 唯一特征值
public void setUuid(String uuid) {
this.uuid = uuid;
}
/** 用户ID
public Integer getUserId() {
return userId;
}
/** 用户ID
public void setUserId(Integer userId) {
this.userId = userId;
}
/** cn | LdapUser::getCn | java | PlayEdu/PlayEdu | playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | https://github.com/PlayEdu/PlayEdu/blob/master/playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | Apache-2.0 |
public void setCn(String cn) {
this.cn = cn;
} |
@TableName ldap_user
@TableName(value = "ldap_user")
public class LdapUser implements Serializable {
/**
@TableId(type = IdType.AUTO)
private Integer id;
/** 唯一特征值
private String uuid;
/** 用户ID
private Integer userId;
/** cn
private String cn;
/** dn
private String dn;
/** ou
private String ou;
/** uid
private String uid;
/** 邮箱
private String email;
/**
private Date createdAt;
/**
private Date updatedAt;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
/**
public Integer getId() {
return id;
}
/**
public void setId(Integer id) {
this.id = id;
}
/** 唯一特征值
public String getUuid() {
return uuid;
}
/** 唯一特征值
public void setUuid(String uuid) {
this.uuid = uuid;
}
/** 用户ID
public Integer getUserId() {
return userId;
}
/** 用户ID
public void setUserId(Integer userId) {
this.userId = userId;
}
/** cn
public String getCn() {
return cn;
}
/** cn | LdapUser::setCn | java | PlayEdu/PlayEdu | playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | https://github.com/PlayEdu/PlayEdu/blob/master/playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | Apache-2.0 |
public String getDn() {
return dn;
} |
@TableName ldap_user
@TableName(value = "ldap_user")
public class LdapUser implements Serializable {
/**
@TableId(type = IdType.AUTO)
private Integer id;
/** 唯一特征值
private String uuid;
/** 用户ID
private Integer userId;
/** cn
private String cn;
/** dn
private String dn;
/** ou
private String ou;
/** uid
private String uid;
/** 邮箱
private String email;
/**
private Date createdAt;
/**
private Date updatedAt;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
/**
public Integer getId() {
return id;
}
/**
public void setId(Integer id) {
this.id = id;
}
/** 唯一特征值
public String getUuid() {
return uuid;
}
/** 唯一特征值
public void setUuid(String uuid) {
this.uuid = uuid;
}
/** 用户ID
public Integer getUserId() {
return userId;
}
/** 用户ID
public void setUserId(Integer userId) {
this.userId = userId;
}
/** cn
public String getCn() {
return cn;
}
/** cn
public void setCn(String cn) {
this.cn = cn;
}
/** dn | LdapUser::getDn | java | PlayEdu/PlayEdu | playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | https://github.com/PlayEdu/PlayEdu/blob/master/playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | Apache-2.0 |
public void setDn(String dn) {
this.dn = dn;
} |
@TableName ldap_user
@TableName(value = "ldap_user")
public class LdapUser implements Serializable {
/**
@TableId(type = IdType.AUTO)
private Integer id;
/** 唯一特征值
private String uuid;
/** 用户ID
private Integer userId;
/** cn
private String cn;
/** dn
private String dn;
/** ou
private String ou;
/** uid
private String uid;
/** 邮箱
private String email;
/**
private Date createdAt;
/**
private Date updatedAt;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
/**
public Integer getId() {
return id;
}
/**
public void setId(Integer id) {
this.id = id;
}
/** 唯一特征值
public String getUuid() {
return uuid;
}
/** 唯一特征值
public void setUuid(String uuid) {
this.uuid = uuid;
}
/** 用户ID
public Integer getUserId() {
return userId;
}
/** 用户ID
public void setUserId(Integer userId) {
this.userId = userId;
}
/** cn
public String getCn() {
return cn;
}
/** cn
public void setCn(String cn) {
this.cn = cn;
}
/** dn
public String getDn() {
return dn;
}
/** dn | LdapUser::setDn | java | PlayEdu/PlayEdu | playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | https://github.com/PlayEdu/PlayEdu/blob/master/playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | Apache-2.0 |
public String getOu() {
return ou;
} |
@TableName ldap_user
@TableName(value = "ldap_user")
public class LdapUser implements Serializable {
/**
@TableId(type = IdType.AUTO)
private Integer id;
/** 唯一特征值
private String uuid;
/** 用户ID
private Integer userId;
/** cn
private String cn;
/** dn
private String dn;
/** ou
private String ou;
/** uid
private String uid;
/** 邮箱
private String email;
/**
private Date createdAt;
/**
private Date updatedAt;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
/**
public Integer getId() {
return id;
}
/**
public void setId(Integer id) {
this.id = id;
}
/** 唯一特征值
public String getUuid() {
return uuid;
}
/** 唯一特征值
public void setUuid(String uuid) {
this.uuid = uuid;
}
/** 用户ID
public Integer getUserId() {
return userId;
}
/** 用户ID
public void setUserId(Integer userId) {
this.userId = userId;
}
/** cn
public String getCn() {
return cn;
}
/** cn
public void setCn(String cn) {
this.cn = cn;
}
/** dn
public String getDn() {
return dn;
}
/** dn
public void setDn(String dn) {
this.dn = dn;
}
/** ou | LdapUser::getOu | java | PlayEdu/PlayEdu | playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | https://github.com/PlayEdu/PlayEdu/blob/master/playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | Apache-2.0 |
public void setOu(String ou) {
this.ou = ou;
} |
@TableName ldap_user
@TableName(value = "ldap_user")
public class LdapUser implements Serializable {
/**
@TableId(type = IdType.AUTO)
private Integer id;
/** 唯一特征值
private String uuid;
/** 用户ID
private Integer userId;
/** cn
private String cn;
/** dn
private String dn;
/** ou
private String ou;
/** uid
private String uid;
/** 邮箱
private String email;
/**
private Date createdAt;
/**
private Date updatedAt;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
/**
public Integer getId() {
return id;
}
/**
public void setId(Integer id) {
this.id = id;
}
/** 唯一特征值
public String getUuid() {
return uuid;
}
/** 唯一特征值
public void setUuid(String uuid) {
this.uuid = uuid;
}
/** 用户ID
public Integer getUserId() {
return userId;
}
/** 用户ID
public void setUserId(Integer userId) {
this.userId = userId;
}
/** cn
public String getCn() {
return cn;
}
/** cn
public void setCn(String cn) {
this.cn = cn;
}
/** dn
public String getDn() {
return dn;
}
/** dn
public void setDn(String dn) {
this.dn = dn;
}
/** ou
public String getOu() {
return ou;
}
/** ou | LdapUser::setOu | java | PlayEdu/PlayEdu | playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | https://github.com/PlayEdu/PlayEdu/blob/master/playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | Apache-2.0 |
public String getUid() {
return uid;
} |
@TableName ldap_user
@TableName(value = "ldap_user")
public class LdapUser implements Serializable {
/**
@TableId(type = IdType.AUTO)
private Integer id;
/** 唯一特征值
private String uuid;
/** 用户ID
private Integer userId;
/** cn
private String cn;
/** dn
private String dn;
/** ou
private String ou;
/** uid
private String uid;
/** 邮箱
private String email;
/**
private Date createdAt;
/**
private Date updatedAt;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
/**
public Integer getId() {
return id;
}
/**
public void setId(Integer id) {
this.id = id;
}
/** 唯一特征值
public String getUuid() {
return uuid;
}
/** 唯一特征值
public void setUuid(String uuid) {
this.uuid = uuid;
}
/** 用户ID
public Integer getUserId() {
return userId;
}
/** 用户ID
public void setUserId(Integer userId) {
this.userId = userId;
}
/** cn
public String getCn() {
return cn;
}
/** cn
public void setCn(String cn) {
this.cn = cn;
}
/** dn
public String getDn() {
return dn;
}
/** dn
public void setDn(String dn) {
this.dn = dn;
}
/** ou
public String getOu() {
return ou;
}
/** ou
public void setOu(String ou) {
this.ou = ou;
}
/** uid | LdapUser::getUid | java | PlayEdu/PlayEdu | playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | https://github.com/PlayEdu/PlayEdu/blob/master/playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | Apache-2.0 |
public void setUid(String uid) {
this.uid = uid;
} |
@TableName ldap_user
@TableName(value = "ldap_user")
public class LdapUser implements Serializable {
/**
@TableId(type = IdType.AUTO)
private Integer id;
/** 唯一特征值
private String uuid;
/** 用户ID
private Integer userId;
/** cn
private String cn;
/** dn
private String dn;
/** ou
private String ou;
/** uid
private String uid;
/** 邮箱
private String email;
/**
private Date createdAt;
/**
private Date updatedAt;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
/**
public Integer getId() {
return id;
}
/**
public void setId(Integer id) {
this.id = id;
}
/** 唯一特征值
public String getUuid() {
return uuid;
}
/** 唯一特征值
public void setUuid(String uuid) {
this.uuid = uuid;
}
/** 用户ID
public Integer getUserId() {
return userId;
}
/** 用户ID
public void setUserId(Integer userId) {
this.userId = userId;
}
/** cn
public String getCn() {
return cn;
}
/** cn
public void setCn(String cn) {
this.cn = cn;
}
/** dn
public String getDn() {
return dn;
}
/** dn
public void setDn(String dn) {
this.dn = dn;
}
/** ou
public String getOu() {
return ou;
}
/** ou
public void setOu(String ou) {
this.ou = ou;
}
/** uid
public String getUid() {
return uid;
}
/** uid | LdapUser::setUid | java | PlayEdu/PlayEdu | playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | https://github.com/PlayEdu/PlayEdu/blob/master/playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | Apache-2.0 |
public String getEmail() {
return email;
} |
@TableName ldap_user
@TableName(value = "ldap_user")
public class LdapUser implements Serializable {
/**
@TableId(type = IdType.AUTO)
private Integer id;
/** 唯一特征值
private String uuid;
/** 用户ID
private Integer userId;
/** cn
private String cn;
/** dn
private String dn;
/** ou
private String ou;
/** uid
private String uid;
/** 邮箱
private String email;
/**
private Date createdAt;
/**
private Date updatedAt;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
/**
public Integer getId() {
return id;
}
/**
public void setId(Integer id) {
this.id = id;
}
/** 唯一特征值
public String getUuid() {
return uuid;
}
/** 唯一特征值
public void setUuid(String uuid) {
this.uuid = uuid;
}
/** 用户ID
public Integer getUserId() {
return userId;
}
/** 用户ID
public void setUserId(Integer userId) {
this.userId = userId;
}
/** cn
public String getCn() {
return cn;
}
/** cn
public void setCn(String cn) {
this.cn = cn;
}
/** dn
public String getDn() {
return dn;
}
/** dn
public void setDn(String dn) {
this.dn = dn;
}
/** ou
public String getOu() {
return ou;
}
/** ou
public void setOu(String ou) {
this.ou = ou;
}
/** uid
public String getUid() {
return uid;
}
/** uid
public void setUid(String uid) {
this.uid = uid;
}
/** 邮箱 | LdapUser::getEmail | java | PlayEdu/PlayEdu | playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | https://github.com/PlayEdu/PlayEdu/blob/master/playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | Apache-2.0 |
public void setEmail(String email) {
this.email = email;
} |
@TableName ldap_user
@TableName(value = "ldap_user")
public class LdapUser implements Serializable {
/**
@TableId(type = IdType.AUTO)
private Integer id;
/** 唯一特征值
private String uuid;
/** 用户ID
private Integer userId;
/** cn
private String cn;
/** dn
private String dn;
/** ou
private String ou;
/** uid
private String uid;
/** 邮箱
private String email;
/**
private Date createdAt;
/**
private Date updatedAt;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
/**
public Integer getId() {
return id;
}
/**
public void setId(Integer id) {
this.id = id;
}
/** 唯一特征值
public String getUuid() {
return uuid;
}
/** 唯一特征值
public void setUuid(String uuid) {
this.uuid = uuid;
}
/** 用户ID
public Integer getUserId() {
return userId;
}
/** 用户ID
public void setUserId(Integer userId) {
this.userId = userId;
}
/** cn
public String getCn() {
return cn;
}
/** cn
public void setCn(String cn) {
this.cn = cn;
}
/** dn
public String getDn() {
return dn;
}
/** dn
public void setDn(String dn) {
this.dn = dn;
}
/** ou
public String getOu() {
return ou;
}
/** ou
public void setOu(String ou) {
this.ou = ou;
}
/** uid
public String getUid() {
return uid;
}
/** uid
public void setUid(String uid) {
this.uid = uid;
}
/** 邮箱
public String getEmail() {
return email;
}
/** 邮箱 | LdapUser::setEmail | java | PlayEdu/PlayEdu | playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | https://github.com/PlayEdu/PlayEdu/blob/master/playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | Apache-2.0 |
public Date getCreatedAt() {
return createdAt;
} |
@TableName ldap_user
@TableName(value = "ldap_user")
public class LdapUser implements Serializable {
/**
@TableId(type = IdType.AUTO)
private Integer id;
/** 唯一特征值
private String uuid;
/** 用户ID
private Integer userId;
/** cn
private String cn;
/** dn
private String dn;
/** ou
private String ou;
/** uid
private String uid;
/** 邮箱
private String email;
/**
private Date createdAt;
/**
private Date updatedAt;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
/**
public Integer getId() {
return id;
}
/**
public void setId(Integer id) {
this.id = id;
}
/** 唯一特征值
public String getUuid() {
return uuid;
}
/** 唯一特征值
public void setUuid(String uuid) {
this.uuid = uuid;
}
/** 用户ID
public Integer getUserId() {
return userId;
}
/** 用户ID
public void setUserId(Integer userId) {
this.userId = userId;
}
/** cn
public String getCn() {
return cn;
}
/** cn
public void setCn(String cn) {
this.cn = cn;
}
/** dn
public String getDn() {
return dn;
}
/** dn
public void setDn(String dn) {
this.dn = dn;
}
/** ou
public String getOu() {
return ou;
}
/** ou
public void setOu(String ou) {
this.ou = ou;
}
/** uid
public String getUid() {
return uid;
}
/** uid
public void setUid(String uid) {
this.uid = uid;
}
/** 邮箱
public String getEmail() {
return email;
}
/** 邮箱
public void setEmail(String email) {
this.email = email;
}
/** | LdapUser::getCreatedAt | java | PlayEdu/PlayEdu | playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | https://github.com/PlayEdu/PlayEdu/blob/master/playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | Apache-2.0 |
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
} |
@TableName ldap_user
@TableName(value = "ldap_user")
public class LdapUser implements Serializable {
/**
@TableId(type = IdType.AUTO)
private Integer id;
/** 唯一特征值
private String uuid;
/** 用户ID
private Integer userId;
/** cn
private String cn;
/** dn
private String dn;
/** ou
private String ou;
/** uid
private String uid;
/** 邮箱
private String email;
/**
private Date createdAt;
/**
private Date updatedAt;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
/**
public Integer getId() {
return id;
}
/**
public void setId(Integer id) {
this.id = id;
}
/** 唯一特征值
public String getUuid() {
return uuid;
}
/** 唯一特征值
public void setUuid(String uuid) {
this.uuid = uuid;
}
/** 用户ID
public Integer getUserId() {
return userId;
}
/** 用户ID
public void setUserId(Integer userId) {
this.userId = userId;
}
/** cn
public String getCn() {
return cn;
}
/** cn
public void setCn(String cn) {
this.cn = cn;
}
/** dn
public String getDn() {
return dn;
}
/** dn
public void setDn(String dn) {
this.dn = dn;
}
/** ou
public String getOu() {
return ou;
}
/** ou
public void setOu(String ou) {
this.ou = ou;
}
/** uid
public String getUid() {
return uid;
}
/** uid
public void setUid(String uid) {
this.uid = uid;
}
/** 邮箱
public String getEmail() {
return email;
}
/** 邮箱
public void setEmail(String email) {
this.email = email;
}
/**
public Date getCreatedAt() {
return createdAt;
}
/** | LdapUser::setCreatedAt | java | PlayEdu/PlayEdu | playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | https://github.com/PlayEdu/PlayEdu/blob/master/playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | Apache-2.0 |
public Date getUpdatedAt() {
return updatedAt;
} |
@TableName ldap_user
@TableName(value = "ldap_user")
public class LdapUser implements Serializable {
/**
@TableId(type = IdType.AUTO)
private Integer id;
/** 唯一特征值
private String uuid;
/** 用户ID
private Integer userId;
/** cn
private String cn;
/** dn
private String dn;
/** ou
private String ou;
/** uid
private String uid;
/** 邮箱
private String email;
/**
private Date createdAt;
/**
private Date updatedAt;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
/**
public Integer getId() {
return id;
}
/**
public void setId(Integer id) {
this.id = id;
}
/** 唯一特征值
public String getUuid() {
return uuid;
}
/** 唯一特征值
public void setUuid(String uuid) {
this.uuid = uuid;
}
/** 用户ID
public Integer getUserId() {
return userId;
}
/** 用户ID
public void setUserId(Integer userId) {
this.userId = userId;
}
/** cn
public String getCn() {
return cn;
}
/** cn
public void setCn(String cn) {
this.cn = cn;
}
/** dn
public String getDn() {
return dn;
}
/** dn
public void setDn(String dn) {
this.dn = dn;
}
/** ou
public String getOu() {
return ou;
}
/** ou
public void setOu(String ou) {
this.ou = ou;
}
/** uid
public String getUid() {
return uid;
}
/** uid
public void setUid(String uid) {
this.uid = uid;
}
/** 邮箱
public String getEmail() {
return email;
}
/** 邮箱
public void setEmail(String email) {
this.email = email;
}
/**
public Date getCreatedAt() {
return createdAt;
}
/**
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
/** | LdapUser::getUpdatedAt | java | PlayEdu/PlayEdu | playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | https://github.com/PlayEdu/PlayEdu/blob/master/playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | Apache-2.0 |
public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
} |
@TableName ldap_user
@TableName(value = "ldap_user")
public class LdapUser implements Serializable {
/**
@TableId(type = IdType.AUTO)
private Integer id;
/** 唯一特征值
private String uuid;
/** 用户ID
private Integer userId;
/** cn
private String cn;
/** dn
private String dn;
/** ou
private String ou;
/** uid
private String uid;
/** 邮箱
private String email;
/**
private Date createdAt;
/**
private Date updatedAt;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
/**
public Integer getId() {
return id;
}
/**
public void setId(Integer id) {
this.id = id;
}
/** 唯一特征值
public String getUuid() {
return uuid;
}
/** 唯一特征值
public void setUuid(String uuid) {
this.uuid = uuid;
}
/** 用户ID
public Integer getUserId() {
return userId;
}
/** 用户ID
public void setUserId(Integer userId) {
this.userId = userId;
}
/** cn
public String getCn() {
return cn;
}
/** cn
public void setCn(String cn) {
this.cn = cn;
}
/** dn
public String getDn() {
return dn;
}
/** dn
public void setDn(String dn) {
this.dn = dn;
}
/** ou
public String getOu() {
return ou;
}
/** ou
public void setOu(String ou) {
this.ou = ou;
}
/** uid
public String getUid() {
return uid;
}
/** uid
public void setUid(String uid) {
this.uid = uid;
}
/** 邮箱
public String getEmail() {
return email;
}
/** 邮箱
public void setEmail(String email) {
this.email = email;
}
/**
public Date getCreatedAt() {
return createdAt;
}
/**
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
/**
public Date getUpdatedAt() {
return updatedAt;
}
/** | LdapUser::setUpdatedAt | java | PlayEdu/PlayEdu | playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | https://github.com/PlayEdu/PlayEdu/blob/master/playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapUser.java | Apache-2.0 |
public Integer getId() {
return id;
} | /*
Copyright (C) 2023 杭州白书科技有限公司
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
package xyz.playedu.common.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
import java.util.Date;
@TableName(value = "ldap_department")
public class LdapDepartment implements Serializable {
/**
@TableId(type = IdType.AUTO)
private Integer id;
/** 唯一特征值
private String uuid;
/** 部门ID
@JsonProperty("department_id")
private Integer departmentId;
/** dn
private String dn;
/**
@JsonProperty("created_at")
private Date createdAt;
/**
@JsonProperty("updated_at")
private Date updatedAt;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
/** | LdapDepartment::getId | java | PlayEdu/PlayEdu | playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapDepartment.java | https://github.com/PlayEdu/PlayEdu/blob/master/playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapDepartment.java | Apache-2.0 |
public void setId(Integer id) {
this.id = id;
} | /*
Copyright (C) 2023 杭州白书科技有限公司
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
package xyz.playedu.common.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
import java.util.Date;
@TableName(value = "ldap_department")
public class LdapDepartment implements Serializable {
/**
@TableId(type = IdType.AUTO)
private Integer id;
/** 唯一特征值
private String uuid;
/** 部门ID
@JsonProperty("department_id")
private Integer departmentId;
/** dn
private String dn;
/**
@JsonProperty("created_at")
private Date createdAt;
/**
@JsonProperty("updated_at")
private Date updatedAt;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
/**
public Integer getId() {
return id;
}
/** | LdapDepartment::setId | java | PlayEdu/PlayEdu | playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapDepartment.java | https://github.com/PlayEdu/PlayEdu/blob/master/playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapDepartment.java | Apache-2.0 |
public String getUuid() {
return uuid;
} | /*
Copyright (C) 2023 杭州白书科技有限公司
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
package xyz.playedu.common.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
import java.util.Date;
@TableName(value = "ldap_department")
public class LdapDepartment implements Serializable {
/**
@TableId(type = IdType.AUTO)
private Integer id;
/** 唯一特征值
private String uuid;
/** 部门ID
@JsonProperty("department_id")
private Integer departmentId;
/** dn
private String dn;
/**
@JsonProperty("created_at")
private Date createdAt;
/**
@JsonProperty("updated_at")
private Date updatedAt;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
/**
public Integer getId() {
return id;
}
/**
public void setId(Integer id) {
this.id = id;
}
/** 唯一特征值 | LdapDepartment::getUuid | java | PlayEdu/PlayEdu | playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapDepartment.java | https://github.com/PlayEdu/PlayEdu/blob/master/playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapDepartment.java | Apache-2.0 |
public void setUuid(String uuid) {
this.uuid = uuid;
} | /*
Copyright (C) 2023 杭州白书科技有限公司
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
package xyz.playedu.common.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
import java.util.Date;
@TableName(value = "ldap_department")
public class LdapDepartment implements Serializable {
/**
@TableId(type = IdType.AUTO)
private Integer id;
/** 唯一特征值
private String uuid;
/** 部门ID
@JsonProperty("department_id")
private Integer departmentId;
/** dn
private String dn;
/**
@JsonProperty("created_at")
private Date createdAt;
/**
@JsonProperty("updated_at")
private Date updatedAt;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
/**
public Integer getId() {
return id;
}
/**
public void setId(Integer id) {
this.id = id;
}
/** 唯一特征值
public String getUuid() {
return uuid;
}
/** 唯一特征值 | LdapDepartment::setUuid | java | PlayEdu/PlayEdu | playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapDepartment.java | https://github.com/PlayEdu/PlayEdu/blob/master/playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapDepartment.java | Apache-2.0 |
public Integer getDepartmentId() {
return departmentId;
} | /*
Copyright (C) 2023 杭州白书科技有限公司
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
package xyz.playedu.common.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
import java.util.Date;
@TableName(value = "ldap_department")
public class LdapDepartment implements Serializable {
/**
@TableId(type = IdType.AUTO)
private Integer id;
/** 唯一特征值
private String uuid;
/** 部门ID
@JsonProperty("department_id")
private Integer departmentId;
/** dn
private String dn;
/**
@JsonProperty("created_at")
private Date createdAt;
/**
@JsonProperty("updated_at")
private Date updatedAt;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
/**
public Integer getId() {
return id;
}
/**
public void setId(Integer id) {
this.id = id;
}
/** 唯一特征值
public String getUuid() {
return uuid;
}
/** 唯一特征值
public void setUuid(String uuid) {
this.uuid = uuid;
}
/** 部门ID | LdapDepartment::getDepartmentId | java | PlayEdu/PlayEdu | playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapDepartment.java | https://github.com/PlayEdu/PlayEdu/blob/master/playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapDepartment.java | Apache-2.0 |
public void setDepartmentId(Integer departmentId) {
this.departmentId = departmentId;
} | /*
Copyright (C) 2023 杭州白书科技有限公司
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
package xyz.playedu.common.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
import java.util.Date;
@TableName(value = "ldap_department")
public class LdapDepartment implements Serializable {
/**
@TableId(type = IdType.AUTO)
private Integer id;
/** 唯一特征值
private String uuid;
/** 部门ID
@JsonProperty("department_id")
private Integer departmentId;
/** dn
private String dn;
/**
@JsonProperty("created_at")
private Date createdAt;
/**
@JsonProperty("updated_at")
private Date updatedAt;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
/**
public Integer getId() {
return id;
}
/**
public void setId(Integer id) {
this.id = id;
}
/** 唯一特征值
public String getUuid() {
return uuid;
}
/** 唯一特征值
public void setUuid(String uuid) {
this.uuid = uuid;
}
/** 部门ID
public Integer getDepartmentId() {
return departmentId;
}
/** 部门ID | LdapDepartment::setDepartmentId | java | PlayEdu/PlayEdu | playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapDepartment.java | https://github.com/PlayEdu/PlayEdu/blob/master/playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapDepartment.java | Apache-2.0 |
public String getDn() {
return dn;
} | /*
Copyright (C) 2023 杭州白书科技有限公司
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
package xyz.playedu.common.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
import java.util.Date;
@TableName(value = "ldap_department")
public class LdapDepartment implements Serializable {
/**
@TableId(type = IdType.AUTO)
private Integer id;
/** 唯一特征值
private String uuid;
/** 部门ID
@JsonProperty("department_id")
private Integer departmentId;
/** dn
private String dn;
/**
@JsonProperty("created_at")
private Date createdAt;
/**
@JsonProperty("updated_at")
private Date updatedAt;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
/**
public Integer getId() {
return id;
}
/**
public void setId(Integer id) {
this.id = id;
}
/** 唯一特征值
public String getUuid() {
return uuid;
}
/** 唯一特征值
public void setUuid(String uuid) {
this.uuid = uuid;
}
/** 部门ID
public Integer getDepartmentId() {
return departmentId;
}
/** 部门ID
public void setDepartmentId(Integer departmentId) {
this.departmentId = departmentId;
}
/** dn | LdapDepartment::getDn | java | PlayEdu/PlayEdu | playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapDepartment.java | https://github.com/PlayEdu/PlayEdu/blob/master/playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapDepartment.java | Apache-2.0 |
public void setDn(String dn) {
this.dn = dn;
} | /*
Copyright (C) 2023 杭州白书科技有限公司
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
package xyz.playedu.common.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
import java.util.Date;
@TableName(value = "ldap_department")
public class LdapDepartment implements Serializable {
/**
@TableId(type = IdType.AUTO)
private Integer id;
/** 唯一特征值
private String uuid;
/** 部门ID
@JsonProperty("department_id")
private Integer departmentId;
/** dn
private String dn;
/**
@JsonProperty("created_at")
private Date createdAt;
/**
@JsonProperty("updated_at")
private Date updatedAt;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
/**
public Integer getId() {
return id;
}
/**
public void setId(Integer id) {
this.id = id;
}
/** 唯一特征值
public String getUuid() {
return uuid;
}
/** 唯一特征值
public void setUuid(String uuid) {
this.uuid = uuid;
}
/** 部门ID
public Integer getDepartmentId() {
return departmentId;
}
/** 部门ID
public void setDepartmentId(Integer departmentId) {
this.departmentId = departmentId;
}
/** dn
public String getDn() {
return dn;
}
/** dn | LdapDepartment::setDn | java | PlayEdu/PlayEdu | playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapDepartment.java | https://github.com/PlayEdu/PlayEdu/blob/master/playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapDepartment.java | Apache-2.0 |
public Date getCreatedAt() {
return createdAt;
} | /*
Copyright (C) 2023 杭州白书科技有限公司
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
package xyz.playedu.common.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
import java.util.Date;
@TableName(value = "ldap_department")
public class LdapDepartment implements Serializable {
/**
@TableId(type = IdType.AUTO)
private Integer id;
/** 唯一特征值
private String uuid;
/** 部门ID
@JsonProperty("department_id")
private Integer departmentId;
/** dn
private String dn;
/**
@JsonProperty("created_at")
private Date createdAt;
/**
@JsonProperty("updated_at")
private Date updatedAt;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
/**
public Integer getId() {
return id;
}
/**
public void setId(Integer id) {
this.id = id;
}
/** 唯一特征值
public String getUuid() {
return uuid;
}
/** 唯一特征值
public void setUuid(String uuid) {
this.uuid = uuid;
}
/** 部门ID
public Integer getDepartmentId() {
return departmentId;
}
/** 部门ID
public void setDepartmentId(Integer departmentId) {
this.departmentId = departmentId;
}
/** dn
public String getDn() {
return dn;
}
/** dn
public void setDn(String dn) {
this.dn = dn;
}
/** | LdapDepartment::getCreatedAt | java | PlayEdu/PlayEdu | playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapDepartment.java | https://github.com/PlayEdu/PlayEdu/blob/master/playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapDepartment.java | Apache-2.0 |
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
} | /*
Copyright (C) 2023 杭州白书科技有限公司
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
package xyz.playedu.common.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
import java.util.Date;
@TableName(value = "ldap_department")
public class LdapDepartment implements Serializable {
/**
@TableId(type = IdType.AUTO)
private Integer id;
/** 唯一特征值
private String uuid;
/** 部门ID
@JsonProperty("department_id")
private Integer departmentId;
/** dn
private String dn;
/**
@JsonProperty("created_at")
private Date createdAt;
/**
@JsonProperty("updated_at")
private Date updatedAt;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
/**
public Integer getId() {
return id;
}
/**
public void setId(Integer id) {
this.id = id;
}
/** 唯一特征值
public String getUuid() {
return uuid;
}
/** 唯一特征值
public void setUuid(String uuid) {
this.uuid = uuid;
}
/** 部门ID
public Integer getDepartmentId() {
return departmentId;
}
/** 部门ID
public void setDepartmentId(Integer departmentId) {
this.departmentId = departmentId;
}
/** dn
public String getDn() {
return dn;
}
/** dn
public void setDn(String dn) {
this.dn = dn;
}
/**
public Date getCreatedAt() {
return createdAt;
}
/** | LdapDepartment::setCreatedAt | java | PlayEdu/PlayEdu | playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapDepartment.java | https://github.com/PlayEdu/PlayEdu/blob/master/playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapDepartment.java | Apache-2.0 |
public Date getUpdatedAt() {
return updatedAt;
} | /*
Copyright (C) 2023 杭州白书科技有限公司
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
package xyz.playedu.common.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
import java.util.Date;
@TableName(value = "ldap_department")
public class LdapDepartment implements Serializable {
/**
@TableId(type = IdType.AUTO)
private Integer id;
/** 唯一特征值
private String uuid;
/** 部门ID
@JsonProperty("department_id")
private Integer departmentId;
/** dn
private String dn;
/**
@JsonProperty("created_at")
private Date createdAt;
/**
@JsonProperty("updated_at")
private Date updatedAt;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
/**
public Integer getId() {
return id;
}
/**
public void setId(Integer id) {
this.id = id;
}
/** 唯一特征值
public String getUuid() {
return uuid;
}
/** 唯一特征值
public void setUuid(String uuid) {
this.uuid = uuid;
}
/** 部门ID
public Integer getDepartmentId() {
return departmentId;
}
/** 部门ID
public void setDepartmentId(Integer departmentId) {
this.departmentId = departmentId;
}
/** dn
public String getDn() {
return dn;
}
/** dn
public void setDn(String dn) {
this.dn = dn;
}
/**
public Date getCreatedAt() {
return createdAt;
}
/**
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
/** | LdapDepartment::getUpdatedAt | java | PlayEdu/PlayEdu | playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapDepartment.java | https://github.com/PlayEdu/PlayEdu/blob/master/playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapDepartment.java | Apache-2.0 |
public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
} | /*
Copyright (C) 2023 杭州白书科技有限公司
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
package xyz.playedu.common.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
import java.util.Date;
@TableName(value = "ldap_department")
public class LdapDepartment implements Serializable {
/**
@TableId(type = IdType.AUTO)
private Integer id;
/** 唯一特征值
private String uuid;
/** 部门ID
@JsonProperty("department_id")
private Integer departmentId;
/** dn
private String dn;
/**
@JsonProperty("created_at")
private Date createdAt;
/**
@JsonProperty("updated_at")
private Date updatedAt;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
/**
public Integer getId() {
return id;
}
/**
public void setId(Integer id) {
this.id = id;
}
/** 唯一特征值
public String getUuid() {
return uuid;
}
/** 唯一特征值
public void setUuid(String uuid) {
this.uuid = uuid;
}
/** 部门ID
public Integer getDepartmentId() {
return departmentId;
}
/** 部门ID
public void setDepartmentId(Integer departmentId) {
this.departmentId = departmentId;
}
/** dn
public String getDn() {
return dn;
}
/** dn
public void setDn(String dn) {
this.dn = dn;
}
/**
public Date getCreatedAt() {
return createdAt;
}
/**
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
/**
public Date getUpdatedAt() {
return updatedAt;
}
/** | LdapDepartment::setUpdatedAt | java | PlayEdu/PlayEdu | playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapDepartment.java | https://github.com/PlayEdu/PlayEdu/blob/master/playedu-api/playedu-common/src/main/java/xyz/playedu/common/domain/LdapDepartment.java | Apache-2.0 |
public void setCurrentItemFake(int item, boolean smoothScroll) {
super.setCurrentItem(item, smoothScroll);
} |
Set the currently selected page.
@param item Item index to select
@param smoothScroll True to smoothly scroll to the new item, false to transition immediately
| UltraViewPagerView::setCurrentItemFake | java | alibaba/UltraViewPager | ultraviewpager/src/main/java/com/tmall/ultraviewpager/UltraViewPagerView.java | https://github.com/alibaba/UltraViewPager/blob/master/ultraviewpager/src/main/java/com/tmall/ultraviewpager/UltraViewPagerView.java | MIT |
public int getCurrentItemFake() {
return super.getCurrentItem();
} |
Get the currently selected page.
| UltraViewPagerView::getCurrentItemFake | java | alibaba/UltraViewPager | ultraviewpager/src/main/java/com/tmall/ultraviewpager/UltraViewPagerView.java | https://github.com/alibaba/UltraViewPager/blob/master/ultraviewpager/src/main/java/com/tmall/ultraviewpager/UltraViewPagerView.java | MIT |
protected InetSocketAddress getRewrittenDestination() {
int destIp = id.getDestinationIp();
int port = id.getDestinationPort();
return new InetSocketAddress(getRewrittenAddress(destIp), port);
} |
Get destination, rewritten to {@code localhost} if it was {@code 10.0.2.2}.
@return Destination to connect to.
| AbstractConnection::getRewrittenDestination | java | Genymobile/gnirehtet | relay-java/src/main/java/com/genymobile/gnirehtet/relay/AbstractConnection.java | https://github.com/Genymobile/gnirehtet/blob/master/relay-java/src/main/java/com/genymobile/gnirehtet/relay/AbstractConnection.java | Apache-2.0 |
private void optimize() {
if (isEmpty()) {
head = 0;
tail = 0;
}
} |
To avoid unnecessary copies, StreamBuffer writes at most until the "end" of the circular
buffer, which is suboptimal (it could have written more data if they have been contiguous).
<p>
In order to minimize the occurrence of this event, reset the head and tail to 0 when the
buffer is empty (no copy is involved).
<p>
This is especially useful when the StreamBuffer is used to read/write one packet at a time,
so the "end" of the buffer is guaranteed to never be reached.
| StreamBuffer::optimize | java | Genymobile/gnirehtet | relay-java/src/main/java/com/genymobile/gnirehtet/relay/StreamBuffer.java | https://github.com/Genymobile/gnirehtet/blob/master/relay-java/src/main/java/com/genymobile/gnirehtet/relay/StreamBuffer.java | Apache-2.0 |
public static int readVersion(ByteBuffer buffer) {
if (buffer.limit() == 0) {
// buffer is empty
return -1;
}
// version is stored in the 4 first bits
byte versionAndIHL = buffer.get(0);
return (versionAndIHL & 0xf0) >> 4;
} |
Read the packet IP version, assuming that an IP packets is stored at absolute position 0.
@param buffer the buffer
@return the IP version, or {@code -1} if not available
| Protocol::readVersion | java | Genymobile/gnirehtet | relay-java/src/main/java/com/genymobile/gnirehtet/relay/IPv4Header.java | https://github.com/Genymobile/gnirehtet/blob/master/relay-java/src/main/java/com/genymobile/gnirehtet/relay/IPv4Header.java | Apache-2.0 |
public static int readLength(ByteBuffer buffer) {
if (buffer.limit() < 4) {
// buffer does not even contains the length field
return -1;
}
// packet length is 16 bits starting at offset 2
return Short.toUnsignedInt(buffer.getShort(2));
} |
Read the packet length, assuming thatan IP packet is stored at absolute position 0.
@param buffer the buffer
@return the packet length, or {@code -1} if not available
| Protocol::readLength | java | Genymobile/gnirehtet | relay-java/src/main/java/com/genymobile/gnirehtet/relay/IPv4Header.java | https://github.com/Genymobile/gnirehtet/blob/master/relay-java/src/main/java/com/genymobile/gnirehtet/relay/IPv4Header.java | Apache-2.0 |
public static int readPacketVersion(ByteBuffer buffer) {
if (!buffer.hasRemaining()) {
// buffer is empty
return -1;
}
// version is stored in the 4 first bits
byte versionAndIHL = buffer.get(buffer.position());
return (versionAndIHL & 0xf0) >> 4;
} |
Read the packet IP version, assuming that an IP packets is stored at absolute position 0.
@param buffer the buffer
@return the IP version, or {@code -1} if not available
| getSimpleName::readPacketVersion | java | Genymobile/gnirehtet | app/src/main/java/com/genymobile/gnirehtet/IPPacketOutputStream.java | https://github.com/Genymobile/gnirehtet/blob/master/app/src/main/java/com/genymobile/gnirehtet/IPPacketOutputStream.java | Apache-2.0 |
public static int readPacketLength(ByteBuffer buffer) {
if (buffer.limit() < buffer.position() + 4) {
// buffer does not even contains the length field
return -1;
}
// packet length is 16 bits starting at offset 2
return Binary.unsigned(buffer.getShort(buffer.position() + 2));
} |
Read the packet length, assuming thatan IP packet is stored at absolute position 0.
@param buffer the buffer
@return the packet length, or {@code -1} if not available
| getSimpleName::readPacketLength | java | Genymobile/gnirehtet | app/src/main/java/com/genymobile/gnirehtet/IPPacketOutputStream.java | https://github.com/Genymobile/gnirehtet/blob/master/app/src/main/java/com/genymobile/gnirehtet/IPPacketOutputStream.java | Apache-2.0 |
private void wakeUpReadWorkaround() {
// network actions may not be called from the main thread
EXECUTOR_SERVICE.execute(new Runnable() {
@Override
public void run() {
try {
DatagramSocket socket = new DatagramSocket();
InetAddress dummyAddr = InetAddress.getByAddress(DUMMY_ADDRESS);
DatagramPacket packet = new DatagramPacket(new byte[0], 0, dummyAddr, DUMMY_PORT);
socket.send(packet);
} catch (IOException e) {
// ignore
}
}
});
} |
Neither vpnInterface.close() nor vpnInputStream.close() wake up a blocking
vpnInputStream.read().
<p>
Therefore, we need to make Android send a packet to the VPN interface (here by sending a UDP
packet), so that any blocking read will be woken up.
<p>
Since the tunnel is closed at this point, it will never reach the network.
| getSimpleName::wakeUpReadWorkaround | java | Genymobile/gnirehtet | app/src/main/java/com/genymobile/gnirehtet/Forwarder.java | https://github.com/Genymobile/gnirehtet/blob/master/app/src/main/java/com/genymobile/gnirehtet/Forwarder.java | Apache-2.0 |
public synchronized void invalidateTunnel(Tunnel tunnelToInvalidate) {
if (tunnel == tunnelToInvalidate || tunnelToInvalidate == null) {
invalidateTunnel();
}
} |
Call {@link #invalidateTunnel()} only if {@code tunnelToInvalidate} is the current tunnel (or
is {@code null}).
@param tunnelToInvalidate the tunnel to invalidate
| RelayTunnelProvider::invalidateTunnel | java | Genymobile/gnirehtet | app/src/main/java/com/genymobile/gnirehtet/RelayTunnelProvider.java | https://github.com/Genymobile/gnirehtet/blob/master/app/src/main/java/com/genymobile/gnirehtet/RelayTunnelProvider.java | Apache-2.0 |
private static void readClientId(InputStream inputStream) throws IOException {
Log.d(TAG, "Requesting client id");
int clientId = new DataInputStream(inputStream).readInt();
Log.d(TAG, "Connected to the relay server as #" + Binary.unsigned(clientId));
} |
The relay server is accessible through an "adb reverse" port redirection.
<p>
If the port redirection is enabled but the relay server is not started, then the call to
channel.connect() will succeed, but the first read() will return -1.
<p>
As a consequence, the connection state of the relay server would be invalid temporarily (we
would switch to CONNECTED state then switch back to DISCONNECTED).
<p>
To avoid this problem, we must actually read from the server, so that an error occurs
immediately if the relay server is not accessible.
<p>
Therefore, the relay server immediately sends the client id: consume it and log it.
@param inputStream the input stream to receive data from the relay server
@throws IOException if an I/O error occurs
| getSimpleName::readClientId | java | Genymobile/gnirehtet | app/src/main/java/com/genymobile/gnirehtet/RelayTunnel.java | https://github.com/Genymobile/gnirehtet/blob/master/app/src/main/java/com/genymobile/gnirehtet/RelayTunnel.java | Apache-2.0 |
public static ValidationResult isValidFile(@NonNull File f) {
ValidationResult vr = isValidFile(f, "File", false);
if (vr != null)
return vr;
return ValidationResult.builder()
.valid(true)
.formatType("File")
.path(getPath(f))
.build();
} |
Validate whether the specified file is a valid file (must exist and be non-empty)
@param f File to check
@return Result of validation
| Nd4jCommonValidator::isValidFile | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/validation/Nd4jCommonValidator.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/validation/Nd4jCommonValidator.java | Apache-2.0 |
public static ValidationResult isValidFile(@NonNull File f, String formatType, boolean allowEmpty) {
String path;
try {
path = f.getAbsolutePath(); //Very occasionally: getAbsolutePath not possible (files in JARs etc)
} catch (Throwable t) {
path = f.getPath();
}
if (f.exists() && !f.isFile()) {
return ValidationResult.builder()
.valid(false)
.formatType(formatType)
.path(path)
.issues(Collections.singletonList(f.isDirectory() ? "Specified path is a directory" : "Specified path is not a file"))
.build();
}
if (!f.exists() || !f.isFile()) {
return ValidationResult.builder()
.valid(false)
.formatType(formatType)
.path(path)
.issues(Collections.singletonList("File does not exist"))
.build();
}
if (!allowEmpty && f.length() <= 0) {
return ValidationResult.builder()
.valid(false)
.formatType(formatType)
.path(path)
.issues(Collections.singletonList("File is empty (length 0)"))
.build();
}
return null; //OK
} |
Validate whether the specified file is a valid file
@param f File to check
@param formatType Name of the file format to include in validation results
@param allowEmpty If true: allow empty files to pass. False: empty files will fail validation
@return Result of validation
| Nd4jCommonValidator::isValidFile | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/validation/Nd4jCommonValidator.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/validation/Nd4jCommonValidator.java | Apache-2.0 |
public static ValidationResult isValidJson(@NonNull File f, Charset charset) {
ValidationResult vr = isValidFile(f, "JSON", false);
if (vr != null)
return vr;
String content;
try {
content = FileUtils.readFileToString(f, charset);
} catch (IOException e) {
return ValidationResult.builder()
.valid(false)
.formatType("JSON")
.path(getPath(f))
.issues(Collections.singletonList("Unable to read file (IOException)"))
.exception(e)
.build();
}
return isValidJson(content, f);
} |
Validate whether the specified file is a valid JSON file. Note that this does not match the JSON content against a specific schema
@param f File to check
@param charset Character set for file
@return Result of validation
| Nd4jCommonValidator::isValidJson | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/validation/Nd4jCommonValidator.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/validation/Nd4jCommonValidator.java | Apache-2.0 |
public static ValidationResult isValidJSON(String s) {
return isValidJson(s, null);
} |
Validate whether the specified String is valid JSON. Note that this does not match the JSON content against a specific schema
@param s JSON String to check
@return Result of validation
| Nd4jCommonValidator::isValidJSON | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/validation/Nd4jCommonValidator.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/validation/Nd4jCommonValidator.java | Apache-2.0 |
public String getTitleLine( int mtLv, int title_I ) {
//
String info = "";
//
if ( title_I < 0 ) return "?";
if ( title_I > 5 ) return "?";
//
info = "";
info += BTools.getMtLvESS( mtLv );
info += BTools.getMtLvISS();
info += "|";
//
InfoValues i_IV;
//
String i_ValuesS = "";
//
int i_VSLen = -1;
//
String i_TitleS = "";
//
for ( int i = 0; i < ivL.size(); i ++ ) {
//
i_IV = ivL.get( i );
//
i_ValuesS = i_IV.getValues();
//
i_VSLen = i_ValuesS.length();
//
i_TitleS = ( title_I < i_IV.titleA.length )? i_IV.titleA[ title_I ] : "";
//
i_TitleS = i_TitleS + BTools.getSpaces( i_VSLen );
//
info += i_TitleS.substring( 0, i_VSLen - 1 );
//
info += "|";
}
//
return info;
} |
Returns titles line as string appointed by title index (0..5).<br>
Columns are separated with char '|'.<br>
If title index is < 0 returns "?".<br>
If title index is > 5 returns "?".<br>
@param mtLv - method level
@param title_I - title index
@return titles line as string
| InfoLine::getTitleLine | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/InfoLine.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/InfoLine.java | Apache-2.0 |
public String getValuesLine( int mtLv ) {
//
String info = "";
//
info += BTools.getMtLvESS( mtLv );
info += BTools.getMtLvISS();
info += "|";
//
InfoValues i_IV;
//
for ( int i = 0; i < ivL.size(); i ++ ) {
//
i_IV = ivL.get( i );
//
info += i_IV.getValues();
}
//
return info;
} |
Returns values line as string.<br>
Columns are separated with char '|'.<br>
@param mtLv - method level
@return values line as string
| InfoLine::getValuesLine | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/InfoLine.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/InfoLine.java | Apache-2.0 |
public void initValues(
int mtLv,
String superiorModuleCode,
PrintStream out,
PrintStream err
) {
//
mtLv ++;
//
moduleCode = superiorModuleCode + "." + baseModuleCode;
//
this.out = out;
this.err = err;
//
} |
<b>initValues</b><br>
public void initValues( int mtLv, String superiorModuleCode,<br>
PrintStream out, PrintStream err )<br>
Initialize values for console - not file.<br>
@param mtLv - method level
@param superiorModuleCode - superior module code
@param out - console standard output
@param err - console error output (not used)
| SIS::initValues | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/SIS.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/SIS.java | Apache-2.0 |
public void initValues(
int mtLv,
String superiorModuleCode,
PrintStream out,
PrintStream err,
String fileDrcS,
String base_FileCode,
String spc_FileCode,
boolean ShowBriefInfo,
boolean ShowFullInfo
) {
//
mtLv ++;
//
moduleCode = superiorModuleCode + "." + baseModuleCode;
//
String methodName = moduleCode + "." + "initValues";
//
this.out = out;
this.err = err;
//
if ( ShowBriefInfo || ShowFullInfo ) {
out.format( "" );
out.format( BTools.getMtLvESS( mtLv ) );
out.format( methodName + ": " );
out.format( "fileDrcS: " + fileDrcS + "; " );
out.format( "base_FileCode: " + base_FileCode + "; " );
out.format( "spc_FileCode: " + spc_FileCode + "; " );
// out.format( "STm: %s; ", Tools.getSDatePM( System.currentTimeMillis(), "HH:mm:ss" ) + "; " );
out.format( "%s", BTools.getSLcDtTm() );
out.format( "%n" );
}
//
initFile( mtLv, fileDrcS, base_FileCode, spc_FileCode, ShowBriefInfo, ShowFullInfo );
//
} |
<b>initValues</b><br>
public void initValues( int mtLv, String superiorModuleCode,<br>
PrintStream out, PrintStream err, String fileDrcS,<br>
String base_FileCode, String spc_FileCode,<br>
boolean ShowBriefInfo, boolean ShowFullInfo )<br>
Initialize values for console and file.<br>
fullFileName =<br>
"Z" +<br>
TimeS + "_" +<br>
base_FileCode + "_" +<br>
spc_FileCode +<br>
".txt";<br>
TimeS (time string) format: "yyyyMMdd'_'HHmmss.SSS"<br>
@param mtLv - method level
@param superiorModuleCode - superior module code
@param out - console standard output
@param err - console error output (not used)
@param fileDrcS - file directory as string
@param base_FileCode - base part of file code
@param spc_FileCode - specifying part of file code
@param ShowBriefInfo - show brief informations
@param ShowFullInfo - show full informations
| SIS::initValues | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/SIS.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/SIS.java | Apache-2.0 |
public String getfullFileName() {
//
return fullFileName;
} |
<b>getfullFileName</b><br>
public String getfullFileName()<br>
Returns full file name<br>
@return full file name
| SIS::getfullFileName | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/SIS.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/SIS.java | Apache-2.0 |
public void info( String oinfo ) {
//
String methodName = moduleCode + "." + "info";
//
out.format( "%s%n", oinfo );
//
charsCount += oinfo.length();
//
String FOInfo = getFullInfoString( oinfo );
//
if ( !isFileOpen( methodName ) ) return;
//
outFile( FOInfo );
//
flushFile();
//
} |
<b>info</b><br>
public void info( String oinfo )<br>
This method is input for informations.<br>
Informations are showed in console and saved in file.<br>
@param oinfo - information
| SIS::info | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/SIS.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/SIS.java | Apache-2.0 |
public long getcharsCount() {
//
return charsCount;
} |
<b>getcharsCount</b><br>
public long getcharsCount()<br>
Returns chars count counted from SIS creating.<br>
@return chars count
| SIS::getcharsCount | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/SIS.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/SIS.java | Apache-2.0 |
public void onStop( int mtLv ) {
//
mtLv ++;
//
String oinfo = "";
//
String methodName = moduleCode + "." + "onStop";
//
oinfo = "";
oinfo += BTools.getMtLvESS( mtLv );
oinfo += methodName + ": ";
oinfo += BTools.getSLcDtTm();
info( oinfo );
//
closeFile();
//
} |
<b>onStop</b><br>
public void onStop( int mtLv )<br>
This method should be called at the end of program.<br>
Close file.<br>
@param mtLv - method level
| SIS::onStop | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/SIS.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/SIS.java | Apache-2.0 |
public static void tryLoadClasses(Class<?> loadingClass, Class<?>... classes) {
ClassLoader loader = ND4JClassLoading.getNd4jClassloader();
for (Class<?> clazz: classes) {
tryLoadClass(loader, clazz.getName());
}
} |
Preload the given classes and so ensure the {@link ClassLoader} has these loaded after this method call.
@param loadingClass the {@link Class} that wants to load the classes.
@param classes the classes to load.
| ClassInitializerUtil::tryLoadClasses | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/ClassInitializerUtil.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/ClassInitializerUtil.java | Apache-2.0 |
public String getValues() {
//
String info = "";
//
for ( int i = 0; i < vsL.size(); i ++ ) {
//
info += vsL.get( i ) + "|";
}
//
return info;
} |
Returns values.<br>
This method use class InfoLine.<br>
This method is not intended for external use.<br>
@return
| InfoValues::getValues | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/InfoValues.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/InfoValues.java | Apache-2.0 |
public String parseString(String name) {
String property = getProperties().getProperty(name);
if (property == null) {
throw new NullPointerException();
}
return property;
} |
Parse property.
@param name property name
@return property
| PropertyParser::parseString | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | Apache-2.0 |
public int parseInt(String name) {
return Integer.parseInt(getProperties().getProperty(name));
} |
Parse property.
@param name property name
@return property
| PropertyParser::parseInt | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | Apache-2.0 |
public boolean parseBoolean(String name) {
String property = getProperties().getProperty(name);
if (property == null) {
throw new IllegalArgumentException();
}
return Boolean.parseBoolean(property);
} |
Parse property.
@param name property name
@return property
| PropertyParser::parseBoolean | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | Apache-2.0 |
public float parseFloat(String name) {
return Float.parseFloat(getProperties().getProperty(name));
} |
Parse property.
@param name property name
@return property
| PropertyParser::parseFloat | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | Apache-2.0 |
public double parseDouble(String name) {
return Double.parseDouble(getProperties().getProperty(name));
} |
Parse property.
@param name property name
@return property
| PropertyParser::parseDouble | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | Apache-2.0 |
public long parseLong(String name) {
return Long.parseLong(getProperties().getProperty(name));
} |
Parse property.
@param name property name
@return property
| PropertyParser::parseLong | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | Apache-2.0 |
public char parseChar(String name) {
String property = getProperties().getProperty(name);
if (property.length() != 1) {
throw new IllegalArgumentException(name + " property is't char");
}
return property.charAt(0);
} |
Parse property.
@param name property name
@return property
| PropertyParser::parseChar | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | Apache-2.0 |
public String toString(String name) {
return toString(name, "");
} |
Get property. The method returns the default value if the property is not parsed.
@param name property name
@return property
| PropertyParser::toString | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | Apache-2.0 |
public int toInt(String name) {
return toInt(name, 0);
} |
Get property. The method returns the default value if the property is not parsed.
@param name property name
@return property
| PropertyParser::toInt | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | Apache-2.0 |
public boolean toBoolean(String name) {
return toBoolean(name, false);
} |
Get property. The method returns the default value if the property is not parsed.
@param name property name
@return property
| PropertyParser::toBoolean | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | Apache-2.0 |
public float toFloat(String name) {
return toFloat(name, 0.0f);
} |
Get property. The method returns the default value if the property is not parsed.
@param name property name
@return property
| PropertyParser::toFloat | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | Apache-2.0 |
public double toDouble(String name) {
return toDouble(name, 0.0);
} |
Get property. The method returns the default value if the property is not parsed.
@param name property name
@return property
| PropertyParser::toDouble | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | Apache-2.0 |
public long toLong(String name) {
return toLong(name, 0);
} |
Get property. The method returns the default value if the property is not parsed.
@param name property name
@return property
| PropertyParser::toLong | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | Apache-2.0 |
public char toChar(String name) {
return toChar(name, '\u0000');
} |
Get property. The method returns the default value if the property is not parsed.
@param name property name
@return property
| PropertyParser::toChar | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | Apache-2.0 |
public String toString(String name, String defaultValue) {
String property = getProperties().getProperty(name);
return property != null ? property : defaultValue;
} |
Get property. The method returns the default value if the property is not parsed.
@param name property name
@param defaultValue default value
@return property
| PropertyParser::toString | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | Apache-2.0 |
public int toInt(String name, int defaultValue) {
try {
return parseInt(name);
} catch (Exception e) {
return defaultValue;
}
} |
Get property. The method returns the default value if the property is not parsed.
@param name property name
@param defaultValue default value
@return property
| PropertyParser::toInt | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | Apache-2.0 |
public boolean toBoolean(String name, boolean defaultValue) {
String property = getProperties().getProperty(name);
return property != null ? Boolean.parseBoolean(property) : defaultValue;
} |
Get property. The method returns the default value if the property is not parsed.
@param name property name
@param defaultValue default value
@return property
| PropertyParser::toBoolean | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | Apache-2.0 |
public float toFloat(String name, float defaultValue) {
try {
return parseFloat(name);
} catch (Exception e) {
return defaultValue;
}
} |
Get property. The method returns the default value if the property is not parsed.
@param name property name
@param defaultValue default value
@return property
| PropertyParser::toFloat | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | Apache-2.0 |
public double toDouble(String name, double defaultValue) {
try {
return parseDouble(name);
} catch (Exception e) {
return defaultValue;
}
} |
Get property. The method returns the default value if the property is not parsed.
@param name property name
@param defaultValue default value
@return property
| PropertyParser::toDouble | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | Apache-2.0 |
public long toLong(String name, long defaultValue) {
try {
return parseLong(name);
} catch (Exception e) {
return defaultValue;
}
} |
Get property. The method returns the default value if the property is not parsed.
@param name property name
@param defaultValue default value
@return property
| PropertyParser::toLong | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | Apache-2.0 |
public char toChar(String name, char defaultValue) {
try {
return parseChar(name);
} catch (Exception e) {
return defaultValue;
}
} |
Get property. The method returns the default value if the property is not parsed.
@param name property name
@param defaultValue default value
@return property
| PropertyParser::toChar | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/PropertyParser.java | Apache-2.0 |
public static String getMtLvESS( int mtLv ) {
// MtLvESS = Method Level External Shift String
//
if ( mtLv < 0 ) return "?";
//
String Result = "";
//
// String LvS = ". ";
String LvS = ".";
//
for ( int K = 1; K <= mtLv; K ++ ) {
//
Result = Result + LvS;
}
//
return Result;
} |
<b>getMtLvESS</b><br>
public static String getMtLvESS( int mtLv )<br>
Returns string. String length create indentation(shift) of other text.<br>
Indentation depends on method level - great method level, great indentation.<br>
Main method has method level 0.<br>
Other called method has method level 1, 2,...N.<br>
@param mtLv - method level
@return method level external shift string
| BTools::getMtLvESS | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/BTools.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/BTools.java | Apache-2.0 |
public static String getMtLvISS() {
// MtLvISS = Method Level Intern Shift String
//
// String Result = "..";
// String Result = "~";
String Result = " ";
//
return Result;
} |
<b>getMtLvISS</b><br>
public static String getMtLvISS()<br>
Returns string. String create indentation(shift)<br>
internal text to start text of method.<br>
@return method level internal shift string
| BTools::getMtLvISS | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/BTools.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/BTools.java | Apache-2.0 |
public static String getSpaces( int SpacesCount ) {
//
if ( SpacesCount < 0 ) return "?";
//
String Info = "";
//
for ( int K = 1; K <= SpacesCount; K ++ ) {
Info += " ";
}
//
//
return Info;
} |
<b>getSpaces</b><br>
public static String getSpaces( int SpacesCount )<br>
Returns asked count of spaces.<br>
If count of spaces is < 0 returns '?'.
@param SpacesCount = spaces count
@return spaces
| BTools::getSpaces | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/BTools.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/BTools.java | Apache-2.0 |
public static String getSBln( boolean... blnA ) {
//
String Info = "";
//
if ( blnA == null ) return "?";
if ( blnA.length == 0 ) return "?";
//
for ( int K = 0; K < blnA.length; K ++ ) {
//
Info += ( blnA[ K ] )? "T" : "F";
}
//
return Info;
} |
<b>getSBln</b><br>
public static String getSBln( boolean... blnA )<br>
Returns boolean(s) converted to char (true = 'T'; false = 'F')<br>
If blnA.length is > 1 returns chars without separator.<br>
If blnA is '{ true, false, true }' returns 'TFT'.<br>
If blnA is null returns '?'.<br>
If blnA.length is 0 returns '?'.<br>
@param blnA
@return boolean(s) as string
| BTools::getSBln | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/BTools.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/BTools.java | Apache-2.0 |
public static String getSDbl( double Value, int DecPrec ) {
//
String Result = "";
//
if ( Double.isNaN( Value ) ) return "NaN";
//
if ( DecPrec < 0 ) DecPrec = 0;
//
String DFS = "###,###,##0";
//
if ( DecPrec > 0 ) {
int idx = 0;
DFS += ".";
while ( idx < DecPrec ) {
DFS = DFS + "0";
idx ++;
if ( idx > 100 ) break;
}
}
//
// Locale locale = new Locale("en", "UK");
//
DecimalFormatSymbols DcmFrmSmb = new DecimalFormatSymbols( Locale.getDefault());
DcmFrmSmb.setDecimalSeparator('.');
DcmFrmSmb.setGroupingSeparator(' ');
//
DecimalFormat DcmFrm;
//
DcmFrm = new DecimalFormat( DFS, DcmFrmSmb );
//
// DcmFrm.setGroupingSize( 3 );
//
Result = DcmFrm.format( Value );
//
return Result;
} |
<b>getSDbl</b><br>
public static String getSDbl( double Value, int DecPrec )<br>
Returns double converted to string.<br>
If Value is Double.NaN returns "NaN".<br>
If DecPrec is < 0 is DecPrec set 0.<br>
@param Value - value
@param DecPrec - decimal precision
@return double as string
| BTools::getSDbl | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/BTools.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/BTools.java | Apache-2.0 |
public static String getSDbl( double Value, int DecPrec, boolean ShowPlusSign ) {
//
String PlusSign = "";
//
if ( ShowPlusSign && Value > 0 ) PlusSign = "+";
if ( ShowPlusSign && Value == 0 ) PlusSign = " ";
//
return PlusSign + getSDbl( Value, DecPrec );
} |
<b>getSDbl</b><br>
public static String getSDbl( double Value, int DecPrec, boolean ShowPlusSign )<br>
Returns double converted to string.<br>
If Value is Double.NaN returns "NaN".<br>
If DecPrec is < 0 is DecPrec set 0.<br>
If ShowPlusSign is true:<br>
- If Value is > 0 sign is '+'.<br>
- If Value is 0 sign is ' '.<br>
@param Value - value
@param DecPrec - decimal precision
@param ShowPlusSign - show plus sign
@return double as string
| BTools::getSDbl | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/BTools.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/BTools.java | Apache-2.0 |
public static String getSDbl( double Value, int DecPrec, boolean ShowPlusSign, int StringLength ) {
//
String Info = "";
//
String SDbl = getSDbl( Value, DecPrec, ShowPlusSign );
//
if ( SDbl.length() >= StringLength ) return SDbl;
//
// String SpacesS = " ";
String SpacesS = getSpaces( StringLength );
//
Info = SpacesS.substring( 0, StringLength - SDbl.length() ) + SDbl;
//
return Info;
} |
<b>getSDbl</b><br>
public static String getSDbl( double Value, int DecPrec, boolean ShowPlusSign, int StringLength )<br>
Returns double converted to string.<br>
If Value is Double.NaN returns "NaN".<br>
If DecPrec is < 0 is DecPrec set 0.<br>
If ShowPlusSign is true:<br>
- If Value is > 0 sign is '+'.<br>
- If Value is 0 sign is ' '.<br>
If StringLength is > base double string length<br>
before base double string adds relevant spaces.<br>
If StringLength is <= base double string length<br>
returns base double string.<br>
@param Value - value
@param DecPrec - decimal precision
@param ShowPlusSign - show plus sign
@param StringLength - string length
@return double as string
| BTools::getSDbl | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/BTools.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/BTools.java | Apache-2.0 |
public static String getSInt( int Value, int CharsCount ) {
//
return getSInt( Value, CharsCount, ' ' );
} |
<b>getSInt</b><br>
public static String getSInt( int Value, int CharsCount )<br>
Returns int converted to string.<br>
If CharsCount > base int string length<br>
before base int string adds relevant spaces.<br>
If CharsCount <= base int string length<br>
returns base int string.<br>
@param Value - value
@param CharsCount - chars count
@return int as string
| BTools::getSInt | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/BTools.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/BTools.java | Apache-2.0 |
public static String getSInt( int Value, int CharsCount, char LeadingChar ) {
//
String Result = "";
//
if ( CharsCount <= 0 ) {
return getSInt( Value );
}
//
String FormatS = "";
if ( LeadingChar == '0' ) {
FormatS = "%" + LeadingChar + Integer.toString( CharsCount ) + "d";
}
else {
FormatS = "%" + Integer.toString( CharsCount ) + "d";
}
//
Result = String.format( FormatS, Value );
//
return Result;
} |
<b>getSInt</b><br>
public static String getSInt( int Value, int CharsCount, char LeadingChar )<br>
Returns int converted to string.<br>
If CharsCount > base int string length<br>
before base int string adds relevant leading chars.<br>
If CharsCount <= base int string length<br>
returns base int string.<br>
@param Value - value
@param CharsCount - chars count
@param LeadingChar - leading char
@return int as string
| BTools::getSInt | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/BTools.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/BTools.java | Apache-2.0 |
public static String getSInt( int Value ) {
//
String Result = "";
//
Result = String.format( "%d", Value );
//
return Result;
} |
<b>getSInt</b><br>
public static String getSInt( int Value )<br>
Returns int converted to string.<br>
@param Value
@return int as string
| BTools::getSInt | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/BTools.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/BTools.java | Apache-2.0 |
public static int getIndexCharsCount( int MaxIndex ) {
//
int CharsCount = 1;
//
if ( MaxIndex <= 0 ) return 1;
//
CharsCount = (int)Math.log10( MaxIndex ) + 1;
//
return CharsCount;
} |
<b>getIndexCharsCount</b><br>
public static int getIndexCharsCount( int MaxIndex )<br>
Returns chars count for max value of index.<br>
Example: Max value of index is 150 and chars count is 3.<br>
It is important for statement of indexed values.<br>
Index columns can have the same width for all rouws.<br>
@param MaxIndex - max value of index
@return chars count for max value of index
| BTools::getIndexCharsCount | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/BTools.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/BTools.java | Apache-2.0 |
public static String getSLcDtTm() {
//
return getSLcDtTm( "mm:ss.SSS" );
} |
<b>getSLcDtTm</b><br>
public static String getSLcDtTm()<br>
Returns local datetime as string.<br>
Datetime format is "mm:ss.SSS".<br>
@return local datetime as string
| BTools::getSLcDtTm | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/BTools.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/BTools.java | Apache-2.0 |
public static String getSLcDtTm( String FormatS ) {
//
String Result = "?";
//
LocalDateTime LDT = LocalDateTime.now();
//
Result = "LDTm: " + LDT.format( DateTimeFormatter.ofPattern( FormatS ) );
//
return Result;
} |
<b>getSLcDtTm</b><br>
public static String getSLcDtTm( String FormatS )<br>
Returns local datetime as string.<br>
Datetime format is param.<br>
@param FormatS datetime format
@return local datetime as string
| BTools::getSLcDtTm | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/BTools.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/tools/BTools.java | Apache-2.0 |
public static <T> Optional<T> empty(){
return (Optional<T>)EMPTY;
} |
Returns an empty Optional instance. No value is present for this Optional.
| Optional::empty | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/primitives/Optional.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/primitives/Optional.java | Apache-2.0 |
public static <T> Optional<T> of(@NonNull T value){
return new Optional<>(value);
} |
Returns an Optional with the specified present non-null value.
@param value the value to be present, which must be non-null
@return an Optional with the value present
| Optional::of | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/primitives/Optional.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/primitives/Optional.java | Apache-2.0 |
public static <T> Optional<T> ofNullable(T value){
if(value == null){
return empty();
}
return new Optional<>(value);
} |
Returns an Optional describing the specified value, if non-null, otherwise returns an empty Optional.
@param value the possibly-null value to describe
@return an Optional with a present value if the specified value is non-null, otherwise an empty Optional
| Optional::ofNullable | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/primitives/Optional.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/primitives/Optional.java | Apache-2.0 |
public T get(){
if (!isPresent()) {
throw new NoSuchElementException("Optional is empty");
}
return value;
} |
If a value is present in this Optional, returns the value, otherwise throws NoSuchElementException.
@return the non-null value held by this Optional
@throws NoSuchElementException - if there is no value present
| Optional::get | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/primitives/Optional.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/primitives/Optional.java | Apache-2.0 |
public boolean isPresent(){
return value != null;
} |
Return true if there is a value present, otherwise false.
@return true if there is a value present, otherwise false
| Optional::isPresent | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/primitives/Optional.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/primitives/Optional.java | Apache-2.0 |
public T orElse(T other){
if(isPresent()){
return get();
}
return other;
} |
Return the value if present, otherwise return other.
@param other the value to be returned if there is no value present, may be null
@return
| Optional::orElse | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/primitives/Optional.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/primitives/Optional.java | Apache-2.0 |
public boolean isEmpty() {
return maps.isEmpty();
} |
This method checks if this CounterMap has any values stored
@return
| CounterMap::isEmpty | java | deeplearning4j/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/common/primitives/CounterMap.java | https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-common/src/main/java/org/nd4j/common/primitives/CounterMap.java | Apache-2.0 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.