+:root {
+ --header-height: 56px;
+}
html, body {
height: 100%;
}
#workspace {
display: flex;
min-height: 100%;
}
.content {
display: flex;
flex: 1 1 auto;
}
#header, #footer {
display: flex;
- height: 56px;
+ height: var(--header-height);
}
#stretch-box {
display: flex;
flex: 1 1 auto;
}
#left-box {
min-width: 300px;
}
#right-box {
display: flex;
align-items: flex-start;
flex: 1 1 auto;
flex-flow: row wrap;
//height: 100vh;
+ height: calc(100vh - var(--header-height) * 2);
overflow: auto;
justify-content: space-evenly;
}
<link href="fonts/iconfont/material-icons.css" rel="stylesheet">
<i class="material-icons">settings_input_svideo</i>
.material-icons {
color: #ffffff;
font-size: 24px;
}
var s = Arrays.asList("a", "a", "a", "b", "b", "b", "c");
var map = s.stream()
.collect(Collectors.groupingBy(Function.identity(), Collectors.counting()));
var max = map.entrySet().stream()
.max(Map.Entry.comparingByValue())
.map(Map.Entry::getValue)
.orElse(0L);
var result = map.entrySet().stream()
.filter(e -> e.getValue().equals(max))
.map(Map.Entry::getKey)
.collect(Collectors.toList()); // [a, b]
return tagDao.findByName(tagName)
.map(tag -> giftCertificateDao.findByTag(tag)
.stream()
.map(giftCertificate -> modelMapper.map(giftCertificate, GiftCertificateDto.class))
.collect(Collectors.toSet()))
.orElseThrow(() -> new EntityNotFoundException(MESSAGE_ENTITY_NOT_FOUND_EXCEPTION));
START TRANSACTION;
delete from gift_certificate_to_tag_relation where gift_certificate_id = 1;
delete from gift_certificate where id = 1;
COMMIT;
/**
* Allocates a new {@code Thread} object. This constructor has the same
* effect as {@linkplain #Thread(ThreadGroup,Runnable,String) Thread}
* {@code (null, null, name)}.
*
* @param name
* the name of the new thread
*/
public Thread(String name) {
init(null, null, name, 0);
}
Thread(null, "Дочерний поток # ");
@param target the object whose run() method gets called
/**
* If this thread was constructed using a separate
* <code>Runnable</code> run object, then that
* <code>Runnable</code> object's <code>run</code> method is called;
* otherwise, this method does nothing and returns.
* <p>
* Subclasses of <code>Thread</code> should override this method.
*
* @see #start()
* @see #stop()
* @see #Thread(ThreadGroup, Runnable, String)
*/
@Override
public void run() {
if (target != null) {
target.run();
}
}